docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableBaseHelper

    The BaseNetworkVariableHelper keeps track of: The number of instances and associates the instance with the NetworkVariable The number of times a specific NetworkVariable instance had its value changed (i.e. !Equal) Note: This could be expanded for future tests focuses around NetworkVariables

    Inheritance
    object
    NetworkVariableBaseHelper
    NetworkVariableHelper<T>
    Inherited Members
    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 NetworkVariableBaseHelper

    Constructors

    NetworkVariableBaseHelper(NetworkVariableBase)

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

    Properties

    InstanceCount

    Returns the total number of registered INetworkVariables

    Declaration
    public static int InstanceCount { get; }
    Property Value
    Type Description
    int

    VarChangedCount

    Returns total number of changes that occurred for all registered INetworkVariables

    Declaration
    public static int VarChangedCount { get; }
    Property Value
    Type Description
    int

    Methods

    ValueChanged()

    Called by the child class NetworkVariableHelper when a value changed

    Declaration
    protected void ValueChanged()
    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)