docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableRay

    A NetworkVariable that holds rays and support serialization

    Inheritance
    object
    NetworkVariable<Ray>
    NetworkVariableRay
    Implements
    INetworkVariable
    Inherited Members
    NetworkVariable<Ray>.Settings
    NetworkVariable<Ray>.LocalTick
    NetworkVariable<Ray>.RemoteTick
    NetworkVariable<Ray>.OnValueChanged
    NetworkVariable<Ray>.Value
    NetworkVariable<Ray>.SetDirty(bool)
    NetworkVariable<Ray>.IsDirty()
    NetworkVariable<Ray>.ResetDirty()
    NetworkVariable<Ray>.CanClientRead(ulong)
    NetworkVariable<Ray>.WriteDelta(Stream)
    NetworkVariable<Ray>.CanClientWrite(ulong)
    NetworkVariable<Ray>.ReadDelta(Stream, bool, ushort, ushort)
    NetworkVariable<Ray>.SetNetworkBehaviour(NetworkBehaviour)
    NetworkVariable<Ray>.ReadField(Stream, ushort, ushort)
    NetworkVariable<Ray>.WriteField(Stream)
    NetworkVariable<Ray>.GetChannel()
    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
    [Serializable]
    public class NetworkVariableRay : NetworkVariable<Ray>, INetworkVariable

    Constructors

    NetworkVariableRay()

    Creates a NetworkVariable with the default value and settings

    Declaration
    public NetworkVariableRay()

    NetworkVariableRay(NetworkVariableSettings)

    Creates a NetworkVariable with the default value and custom settings

    Declaration
    public NetworkVariableRay(NetworkVariableSettings settings)
    Parameters
    Type Name Description
    NetworkVariableSettings settings

    The settings to use for the NetworkVariable

    NetworkVariableRay(NetworkVariableSettings, Ray)

    Creates a NetworkVariable with a custom value and custom settings

    Declaration
    public NetworkVariableRay(NetworkVariableSettings settings, Ray value)
    Parameters
    Type Name Description
    NetworkVariableSettings settings

    The settings to use for the NetworkVariable

    Ray value

    The initial value to use for the NetworkVariable

    NetworkVariableRay(Ray)

    Creates a NetworkVariable with a custom value and the default settings

    Declaration
    public NetworkVariableRay(Ray value)
    Parameters
    Type Name Description
    Ray value

    The initial value to use for the NetworkVariable

    Implements

    INetworkVariable
    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)