Class InspectorUtility | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class InspectorUtility

    Inheritance
    System.Object
    InspectorUtility
    Namespace: Cinemachine.Editor
    Syntax
    public class InspectorUtility

    Methods

    AddAssetsFromPackageSubDirectory(Type, List<ScriptableObject>, String)

    Declaration
    public static void AddAssetsFromPackageSubDirectory(Type type, List<ScriptableObject> assets, string path)
    Parameters
    Type Name Description
    System.Type type
    System.Collections.Generic.List<ScriptableObject> assets
    System.String path

    CreateGameObject(String, Type[])

    Declaration
    public static GameObject CreateGameObject(string name, params Type[] types)
    Parameters
    Type Name Description
    System.String name
    System.Type[] types
    Returns
    Type Description
    GameObject

    MultiPropertyOnLine(Rect, GUIContent, SerializedProperty[], GUIContent[])

    Put multiple properties on a single inspector line, with optional label overrides. Passing null as a label (or sublabel) override will cause the property's displayName to be used as a label. For no label at all, pass GUIContent.none.

    Declaration
    public static void MultiPropertyOnLine(Rect rect, GUIContent label, SerializedProperty[] props, GUIContent[] subLabels)
    Parameters
    Type Name Description
    Rect rect
    GUIContent label
    SerializedProperty[] props
    GUIContent[] subLabels

    NicifyClassName(String)

    Declaration
    public static string NicifyClassName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.String

    NormalizeCurve(AnimationCurve)

    Declaration
    public static AnimationCurve NormalizeCurve(AnimationCurve curve)
    Parameters
    Type Name Description
    AnimationCurve curve
    Returns
    Type Description
    AnimationCurve
    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