docs.unity3d.com
    Show / Hide Table of Contents

    Class UserNetworkVariableSerialization<T>

    This class is used to register user serialization with NetworkVariables for types that are serialized via user serialization, such as with FastBufferReader and FastBufferWriter extension methods. Finding those methods isn't achievable efficiently at runtime, so this allows users to tell NetworkVariable about those extension methods (or simply pass in a lambda)

    Inheritance
    Object
    UserNetworkVariableSerialization<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode
    Syntax
    public class UserNetworkVariableSerialization<T>
    Type Parameters
    Name Description
    T

    Fields

    DuplicateValue

    Callback to create a duplicate of a value, used to check for dirty status.

    Declaration
    public static UserNetworkVariableSerialization<T>.DuplicateValueDelegate DuplicateValue
    Field Value
    Type Description
    UserNetworkVariableSerialization.DuplicateValueDelegate<>

    ReadValue

    Callback to read a value

    Declaration
    public static UserNetworkVariableSerialization<T>.ReadValueDelegate ReadValue
    Field Value
    Type Description
    UserNetworkVariableSerialization.ReadValueDelegate<>

    WriteValue

    Callback to write a value

    Declaration
    public static UserNetworkVariableSerialization<T>.WriteValueDelegate WriteValue
    Field Value
    Type Description
    UserNetworkVariableSerialization.WriteValueDelegate<>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023