docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor NetworkVariable

    NetworkVariable(T, NetworkVariableReadPermission, NetworkVariableWritePermission)

    Constructor for NetworkVariable<T>

    Declaration
    public NetworkVariable(T value = default, NetworkVariableReadPermission readPerm = NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission writePerm = NetworkVariableWritePermission.Server)
    Parameters
    Type Name Description
    T value

    initial value set that is of type T

    NetworkVariableReadPermission readPerm

    the NetworkVariableReadPermission for this NetworkVariable<T>

    NetworkVariableWritePermission writePerm

    the NetworkVariableWritePermission for this NetworkVariable<T>

    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)