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.

Search Results for

    Show / Hide Table of Contents

    Class InspectorGenericFields<T>

    A set of Inspector fields for setting up properties in a component that can be automatically rendered in a custom inspector

    Inheritance
    Object
    InspectorGenericFields<T>
    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 class InspectorGenericFields<T>
    Type Parameters
    Name Description
    T

    Methods

    GetSettings(T)

    Searches through a class for InspectorField tags creates properties that can be serialized and automatically rendered in a custom inspector

    Declaration
    public static List<InspectorPropertySetting> GetSettings(T source)
    Parameters
    Type Name Description
    T source
    Returns
    Type Description
    List<InspectorPropertySetting>

    LoadSettings(T, List<InspectorPropertySetting>)

    Copies values from Inspector PropertySettings to an instantiated class on start, helps overcome polymorphism limitations of serialization

    Declaration
    public static void LoadSettings(T target, List<InspectorPropertySetting> settings)
    Parameters
    Type Name Description
    T target
    List<InspectorPropertySetting> settings
    In This Article
    Back to top Generated by DocFX