docs.unity.cn
    Show / Hide Table of Contents

    Enum BasisTransformation

    How to transform from the USD basis (typically right-handed) to Unity (left-handed).

    Namespace: Unity.Formats.USD
    Syntax
    public enum BasisTransformation

    Fields

    Name Description Value
    FastWithNegativeScale

    Apply a single negative scale and rotation at the root of the scene hierarchy. Fastest, but may introduce additional complications when later exporting.


    0
    SlowAndSafe

    Transform to left-handed basis by processing all positions, triangles, transforms, and primvar data. While slower, this is the safest option.


    1
    SlowAndSafeAsFBX

    Transform to left-handed basis by processing all positions, triangles, transforms, and primvar data. It transforms to match the basis transformation of FBX which is from (X,Y,Z) to (-X,Y,Z) instead of the standard (SlowAndSafe option) (X,Y,Z) to (X,Y,-Z). This is not a conventional behavior and this option is here only to allow consistency between geometry importers.


    2
    None

    Preform no transformation; should only be used when the USD file is known to contain data which was (non-portably) stored in a left-handed basis.


    3
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, June 23, 2023