docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SerializableEnum

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

    Inheritance
    object
    SerializableEnum
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    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 as enum

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

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)