Class InspectorFieldsUtility
A collection of helper functions for adding InspectorFields to a custom Inspector
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
Assembly: cs.temp.dll.dll
Syntax
public static class InspectorFieldsUtility
Methods
DisplayPropertyField(SerializedProperty)
Render a PropertySettings UI field based on the InspectorField Settings
Declaration
public static void DisplayPropertyField(SerializedProperty prop)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
prop |
IsPropertyType(SerializedProperty, InspectorField.FieldTypes)
Checks the type a property field and returns if it matches the passed in type
Declaration
public static bool IsPropertyType(SerializedProperty prop, InspectorField.FieldTypes type)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
prop | |
Inspector |
type |
Returns
Type | Description |
---|---|
Boolean |
PropertySettingsList(SerializedProperty, List<InspectorFieldData>)
Create a new list of serialized PropertySettings from InspectorFields
Declaration
public static void PropertySettingsList(SerializedProperty settings, List<InspectorFieldData> data)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
settings | |
List<Inspector |
data |
UpdatePropertySettings(SerializedProperty, Int32, Object)
Update a property value in a serialized PropertySettings
Declaration
public static void UpdatePropertySettings(SerializedProperty prop, int type, object update)