Class InspectorUtility | Cinemachine | 2.4.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class InspectorUtility

    Inheritance
    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
    Type type
    List<ScriptableObject> assets
    String path

    CreateGameObject(String, Type[])

    Declaration
    public static GameObject CreateGameObject(string name, params Type[] types)
    Parameters
    Type Name Description
    String name
    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
    String name
    Returns
    Type Description
    String

    NormalizeCurve(AnimationCurve)

    Declaration
    public static AnimationCurve NormalizeCurve(AnimationCurve curve)
    Parameters
    Type Name Description
    AnimationCurve curve
    Returns
    Type Description
    AnimationCurve

    RepaintGameView(UnityEngine.Object)

    Declaration
    public static void RepaintGameView(UnityEngine.Object dirtyObject = null)
    Parameters
    Type Name Description
    UnityEngine.Object dirtyObject
    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