mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    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>

    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

    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
    • Methods
      • GetSettings(T)
      • GetSettings(T)
      • LoadSettings(T, List<InspectorPropertySetting>)
      • LoadSettings(T, List<InspectorPropertySetting>)
    Back to top Generated by DocFX