We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class InspectorFieldsUtility

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

    Inheritance
    Object
    InspectorFieldsUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    SerializedProperty 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
    SerializedProperty prop
    InspectorField.FieldTypes 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
    SerializedProperty settings
    List<InspectorFieldData> data

    UpdatePropertySettings(SerializedProperty, Int32, Object)

    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
    Back to top Generated by DocFX