Class InspectorFieldsUtility
A collection of helper functions for adding InspectorFields to a custom Inspector
Inheritance
InspectorFieldsUtility
Assembly: cs.temp.dll.dll
public static class InspectorFieldsUtility
Methods
Adds InspectorFields to list of serialized PropertySettings
Declaration
public static void AddFieldsToSettingsList(SerializedProperty settings, List<InspectorFieldData> data)
Parameters
Adds InspectorFields to list of serialized PropertySettings
Declaration
public static void AddFieldsToSettingsList(SerializedProperty settings, List<InspectorFieldData> data)
Parameters
Declaration
public static bool AreFieldsSame(SerializedProperty settings, List<InspectorFieldData> fieldList)
Parameters
Returns
Declaration
public static bool AreFieldsSame(SerializedProperty settings, List<InspectorFieldData> fieldList)
Parameters
Returns
Create a new list of serialized PropertySettings from InspectorFields
Declaration
public static void ClearSettingsList(SerializedProperty settings, List<InspectorFieldData> data)
Parameters
Create a new list of serialized PropertySettings from InspectorFields
Declaration
public static void ClearSettingsList(SerializedProperty settings, List<InspectorFieldData> data)
Parameters
Render a PropertySettings UI field based on the InspectorField Settings
Declaration
public static void DisplayPropertyField(SerializedProperty prop)
Parameters
Type |
Name |
Description |
SerializedProperty |
prop |
|
Render a PropertySettings UI field based on the InspectorField Settings
Declaration
public static void DisplayPropertyField(SerializedProperty prop)
Parameters
Type |
Name |
Description |
SerializedProperty |
prop |
|
Declaration
public static List<InspectorFieldData> GetInspectorFields(object target)
Parameters
Type |
Name |
Description |
Object |
target |
|
Returns
Declaration
public static List<InspectorFieldData> GetInspectorFields(object target)
Parameters
Type |
Name |
Description |
Object |
target |
|
Returns
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
Returns
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
Returns
Update a property value in a serialized PropertySettings
Declaration
public static void UpdatePropertySettings(SerializedProperty prop, int type, object update)
Parameters
Type |
Name |
Description |
SerializedProperty |
prop |
|
Int32 |
type |
|
Object |
update |
|
Update a property value in a serialized PropertySettings
Declaration
public static void UpdatePropertySettings(SerializedProperty prop, int type, object update)
Parameters
Type |
Name |
Description |
SerializedProperty |
prop |
|
Int32 |
type |
|
Object |
update |
|
Update list of serialized PropertySettings from new or removed InspectorFields
Declaration
public static void UpdateSettingsList(SerializedProperty settings, List<InspectorFieldData> fieldList)
Parameters
Update list of serialized PropertySettings from new or removed InspectorFields
Declaration
public static void UpdateSettingsList(SerializedProperty settings, List<InspectorFieldData> fieldList)
Parameters