docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableHelper<T>

    Will automatically register for the NetworkVariable OnValueChanged delegate handler. It then will expose that single delegate invocation to anything that registers for this NetworkVariableHelper's instance's OnValueChanged event. This allows us to register any NetworkVariable type as well as there are basically two "types of types":

    • IEquatable<T>
    • ValueType
    From both we can then at least determine if the value indeed changed
    Inheritance
    object
    NetworkVariableBaseHelper
    NetworkVariableHelper<T>
    Inherited Members
    NetworkVariableBaseHelper.InstanceCount
    NetworkVariableBaseHelper.VarChangedCount
    NetworkVariableBaseHelper.ValueChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.TestHelpers.Runtime
    Assembly: Unity.Netcode.TestHelpers.Runtime.dll
    Syntax
    public class NetworkVariableHelper<T> : NetworkVariableBaseHelper
    Type Parameters
    Name Description
    T

    Constructors

    NetworkVariableHelper(NetworkVariableBase)

    Declaration
    public NetworkVariableHelper(NetworkVariableBase networkVariable)
    Parameters
    Type Name Description
    NetworkVariableBase networkVariable

    Events

    OnValueChanged

    Declaration
    public event NetworkVariableHelper<T>.OnMyValueChangedDelegateHandler OnValueChanged
    Event Type
    Type Description
    NetworkVariableHelper<T>.OnMyValueChangedDelegateHandler
    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)