docs.unity.cn
    Show / Hide Table of Contents

    Class SerializableEnum

    Class to serizalize Enum as string and recover it's state

    Inheritance
    Object
    SerializableEnum
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public class SerializableEnum

    Constructors

    SerializableEnum(Type)

    Construct an enum to be serialized with a type

    Declaration
    public SerializableEnum(Type enumType)
    Parameters
    Type Name Description
    Type enumType

    The underliying type of the enum

    Properties

    value

    Value of enum

    Declaration
    public Enum value { get; set; }
    Property Value
    Type Description
    Enum

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 18 November 2022
    Terms of use