日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

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