docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableSettings

    The settings class used by the build in NetworkVar implementations

    Inheritance
    object
    NetworkVariableSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MLAPI.NetworkVariable
    Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
    Syntax
    public class NetworkVariableSettings

    Constructors

    NetworkVariableSettings()

    Constructs a new NetworkVariableSettings instance

    Declaration
    public NetworkVariableSettings()

    Fields

    ReadPermission

    Defines the read permissions for this var

    Declaration
    public NetworkVariablePermission ReadPermission
    Field Value
    Type Description
    NetworkVariablePermission

    ReadPermissionCallback

    The delegate used to evaluate read permission when the "Custom" mode is used

    Declaration
    public NetworkVariablePermissionsDelegate ReadPermissionCallback
    Field Value
    Type Description
    NetworkVariablePermissionsDelegate

    SendNetworkChannel

    The name of the channel to use for this variable. Variables with different channels will be split into different packets

    Declaration
    public NetworkChannel SendNetworkChannel
    Field Value
    Type Description
    NetworkChannel

    SendTickrate

    The maximum times per second this var will be synced. A value of 0 will cause the variable to sync as soon as possible after being changed. A value of less than 0 will cause the variable to sync only at once at spawn and not update again.

    Declaration
    public float SendTickrate
    Field Value
    Type Description
    float

    WritePermission

    Defines the write permissions for this var

    Declaration
    public NetworkVariablePermission WritePermission
    Field Value
    Type Description
    NetworkVariablePermission

    WritePermissionCallback

    The delegate used to evaluate write permission when the "Custom" mode is used

    Declaration
    public NetworkVariablePermissionsDelegate WritePermissionCallback
    Field Value
    Type Description
    NetworkVariablePermissionsDelegate
    In This Article
    Back to top
    Copyright © 2025 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)