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