Class FormerlySerializedAsAttribute | Properties | 0.10.4-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class FormerlySerializedAsAttribute

    Use this attribute to rename a struct, class, field or property without losing its serialized value.

    Inheritance
    Object
    Attribute
    FormerlySerializedAsAttribute
    Namespace: Unity.Properties
    Syntax
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
    public class FormerlySerializedAsAttribute : Attribute, _Attribute

    Constructors

    FormerlySerializedAsAttribute(String)

    Declaration
    public FormerlySerializedAsAttribute(string oldName)
    Parameters
    Type Name Description
    String oldName

    Properties

    OldName

    Declaration
    public string OldName { get; }
    Property Value
    Type Description
    String
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX