Class InspectorUtility
Inheritance
InspectorUtility
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
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
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 |
|