Class InspectorUtility
Inheritance
System.Object
InspectorUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Cinemachine.Editor
Syntax
public class InspectorUtility
Methods
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 |
NormalizeCurve(AnimationCurve)
Declaration
public static AnimationCurve NormalizeCurve(AnimationCurve curve)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | curve |
Returns
Type | Description |
---|---|
AnimationCurve |