Method GetPath
GetPath(Transform)
Returns a valid UsdPath for the given Unity GameObject.
Declaration
public static string GetPath(Transform unityObj)
Parameters
Type | Name | Description |
---|---|---|
Transform | unityObj |
Returns
Type | Description |
---|---|
string |
Remarks
Note that illegal characters are converted into legal characters, so invalid names may collide in the USD namespace.
GetPath(Transform, Transform)
Returns a valid UsdPath for the given Unity GameObject, relative to the given root. For example: obj = /Foo/Bar/Baz, root = /Foo the result will be /Bar/Baz
Declaration
public static string GetPath(Transform unityObj, Transform unityObjRoot)
Parameters
Type | Name | Description |
---|---|---|
Transform | unityObj | |
Transform | unityObjRoot |
Returns
Type | Description |
---|---|
string |
Remarks
Note that illegal characters are converted into legal characters, so invalid names may collide in the USD namespace.