A collection of methods used for importing USD Xform data into Unity.
Inheritance
XformImporter
public static class XformImporter
Methods
Build the root of a scene under which more USD data will be imported. If the handedness
is changed here, no subsequent changes are required below, however the root will contain
a negative scale.
Declaration
public static void BuildSceneRoot(Scene scene, Transform root, SceneImportOptions options)
Parameters
Copies the transform value from USD to Unity, optionally changing handedness in the
process.
Declaration
public static void BuildXform(pxr.SdfPath path, XformableSample usdXf, GameObject go, SceneImportOptions options, Scene scene)
Parameters
Declaration
public static void BuildXform(Matrix4x4 xf, GameObject go, SceneImportOptions options)
Parameters
Imports a matrix transform, correctly handling the change of basis.
Declaration
public static void ImportXform(ref Matrix4x4 mat, SceneImportOptions options)
Parameters
Declaration
public static void UndoRootTransform(Scene scene, UsdAsset stageRoot, ref Vector3 localScale, ref Quaternion localRotation)
Parameters