Search Results for

    Show / Hide Table of Contents

    Class ObjectSwitcherEditor.OptionType

    Defines type that can be assigned to the modified property.

    Inheritance
    System.Object
    ObjectSwitcherEditor.OptionType
    Namespace: FlaxEditor.CustomEditors.Editors
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class OptionType : ValueType

    Constructors

    OptionType(String, Type)

    Initializes a new instance of the ObjectSwitcherEditor.OptionType struct.

    Declaration
    public OptionType(string name, Type type)
    Parameters
    System.String name

    The name.

    System.Type type

    The type.

    OptionType(String, Type, Func<Type, Object>)

    Initializes a new instance of the ObjectSwitcherEditor.OptionType struct.

    Declaration
    public OptionType(string name, Type type, Func<Type, object> creator)
    Parameters
    System.String name

    The name.

    System.Type type

    The type.

    System.Func<System.Type, System.Object> creator

    The instance creation function.

    OptionType(Type)

    Initializes a new instance of the ObjectSwitcherEditor.OptionType struct.

    Declaration
    public OptionType(Type type)
    Parameters
    System.Type type

    The type.

    Fields

    Creator

    The creator function that spawns the object of the given type.

    Declaration
    public Func<Type, object> Creator
    Field Value
    System.Func<System.Type, System.Object>

    Name

    The type name used to show in the type selector dropdown menu (for user interface).

    Declaration
    public string Name
    Field Value
    System.String

    Type

    The type.

    Declaration
    public Type Type
    Field Value
    System.Type

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat