Class AvatarProcessor
This class is the main entry point for triggering NDMF processing of an avatar.
public static class AvatarProcessor
- Inheritance
-
AvatarProcessor
- Inherited Members
Methods
CanProcessObject(GameObject)
Returns true if the given GameObject appears to be an avatar that can be processed.
public static bool CanProcessObject(GameObject avatar)
Parameters
avatarGameObject
Returns
CleanTemporaryAssets()
Deletes all temporary assets after a build.
public static void CleanTemporaryAssets()
ProcessAvatar(GameObject)
Processes an avatar as part of an automated process. The resulting assets will be saved in a temporary location.
public static void ProcessAvatar(GameObject root)
Parameters
rootGameObject
ProcessAvatar(GameObject, INDMFPlatformProvider)
Processes an avatar as part of an automated process, using a specific platform provider. The platform provider will be set as the ambient platform provider for the duration of the build.
public static BuildContext ProcessAvatar(GameObject root, INDMFPlatformProvider platform)
Parameters
rootGameObjectplatformINDMFPlatformProvider
Returns
Exceptions
ProcessAvatarUI(GameObject)
Process an avatar on request by the user. The resulting assets will be saved in a persistent directory that will not be cleaned up by CleanTemporaryAssets.
public static GameObject ProcessAvatarUI(GameObject obj)
Parameters
objGameObject
Returns
- GameObject