Class ImporterBase | USD | 2.0.0-exp.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class ImporterBase

    Basic functionality shared among Importers.

    Inheritance
    Object
    ImporterBase
    Namespace: Unity.Formats.USD
    Syntax
    public static class ImporterBase

    Methods

    ApproximatelyEqual(Matrix4x4, Matrix4x4)

    Declaration
    public static bool ApproximatelyEqual(Matrix4x4 lhs, Matrix4x4 rhs)
    Parameters
    Type Name Description
    Matrix4x4 lhs
    Matrix4x4 rhs
    Returns
    Type Description
    Boolean

    GetOrAddComponent<T>(GameObject, Boolean)

    Declaration
    public static T GetOrAddComponent<T>(GameObject go, bool insertFirst = false)
        where T : Component
    Parameters
    Type Name Description
    GameObject go
    Boolean insertFirst
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    MakeRelativePath(String, String)

    Creates a relative path from one file or folder to another.

    Declaration
    public static string MakeRelativePath(string anchorPath, string pathToMakeRelative)
    Parameters
    Type Name Description
    String anchorPath
    String pathToMakeRelative
    Returns
    Type Description
    String

    MoveComponentFirst(Component)

    Moves the given component to be first in the list on the GameObject. If not in editor, this function is a no-op.

    Declaration
    public static void MoveComponentFirst(Component comp)
    Parameters
    Type Name Description
    Component comp

    MoveComponentLast(Component)

    Moves the given component to be last in the list on the GameObject. If not in editor, this function is a no-op.

    Declaration
    public static void MoveComponentLast(Component comp)
    Parameters
    Type Name Description
    Component comp
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023