docs.unity3d.com
Search Results for

    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
    Assembly: solution.dll
    Syntax
    public class UserNetworkVariableSerialization<T>
    Type Parameters
    Name Description
    T

    Fields

    Name Description
    DuplicateValue

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

    ReadValue

    Callback to read a value

    WriteValue

    Callback to write a value

    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)