docs.unity.cn
    Show / Hide Table of Contents

    Class DontSerializeVariant

    Special universal component variant that can be assigned to any component and/or buffer. When a component serializer is set to DontSerializeVariant, the component itself is not stripped from the client or server version of the prefab, but at runtime it is not serialized (and thus not sent to the clients).

    Inheritance
    Object
    DontSerializeVariant
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.NetCode
    Syntax
    public sealed class DontSerializeVariant
    Remarks

    DontSerializeVariant is the default variant for all child entities, and is available for all serialized types automatically.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023