InspectorFieldsUtility Class

Definition

A collection of helper functions for adding InspectorFields to a custom Inspector

C++
public ref class InspectorFieldsUtility abstract sealed
Inheritance
InspectorFieldsUtility

Methods

AddFieldsToSettingsList(SerializedProperty, List<InspectorFieldData>)

Adds InspectorFields to list of serialized PropertySettings

AreFieldsSame(SerializedProperty, List<InspectorFieldData>)
ClearSettingsList(SerializedProperty, List<InspectorFieldData>)

Create a new list of serialized PropertySettings from InspectorFields

DisplayPropertyField(SerializedProperty)

Render a PropertySettings UI field based on the InspectorField Settings

GetInspectorFields(Object)
IsPropertyType(SerializedProperty, InspectorField+FieldTypes)

Checks the type a property field and returns if it matches the passed in type

UpdatePropertySettings(SerializedProperty, Int32, Object)

Update a property value in a serialized PropertySettings

UpdateSettingsList(SerializedProperty, List<InspectorFieldData>)

Update list of serialized PropertySettings from new or removed InspectorFields

Applies to

Produkt Verzie
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0