docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SerializableType

    Holds a System.Type in a serializable format.

    Inheritance
    object
    SerializableType
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Global Namespace
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class SerializableType : ISerializationCallbackReceiver

    Constructors

    Name Description
    SerializableType(Type)

    Initializes the type.

    Fields

    Name Description
    data

    Serialized data.

    type

    The type variable loaded for runtime.

    Methods

    Name Description
    BeginLoad()

    Call at the start of a deserialization, will begin the recording of any implicit upgrades.

    EndLoad()

    Called on ending of a deserialization to see if SerializableType implicitly upgraded.

    OnAfterDeserialize()

    Called by the deserialization module, used to load the .type from .data.

    OnBeforeSerialize()

    Called by the serialization module, used to dump the .type to the .data.

    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)