Search Results for

    Show / Hide Table of Contents

    Class NetworkIdentity

    A Network Identity. This manages the attached object's (and it's children) network presence.

    Inheritance
    Object
    NetworkIdentity
    Namespace: FNNLib
    Assembly: FNNLib.dll
    Syntax
    public class NetworkIdentity : MonoBehaviour

    Fields

    | Improve this Doc View Source

    prefabHash

    Declaration
    public ulong prefabHash
    Field Value
    Type Description
    UInt64
    | Improve this Doc View Source

    prefabHashGenerator

    The prefab hash generator

    Declaration
    public string prefabHashGenerator
    Field Value
    Type Description
    String
    | Improve this Doc View Source

    sceneInstanceID

    Unique identifier for this object in the scene. Only used if this is a scene object. Do not set this value yourself!

    Declaration
    public ulong sceneInstanceID
    Field Value
    Type Description
    UInt64

    Properties

    | Improve this Doc View Source

    behaviours

    Declaration
    public List<NetworkBehaviour> behaviours { get; }
    Property Value
    Type Description
    List<NetworkBehaviour>
    | Improve this Doc View Source

    isLocalPlayer

    Whether or not this is the local player's player object.

    Declaration
    public bool isLocalPlayer { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    isOwnedByServer

    Declaration
    public bool isOwnedByServer { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    isOwner

    Whether or not the local player has ownership over this object.

    Declaration
    public bool isOwner { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    isPlayerObject

    Whether or not this object is the player object for a client.

    Declaration
    public bool isPlayerObject { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    isSceneObject

    Whether or not this object was spawned with the scene.

    Declaration
    public bool? isSceneObject { get; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    isSpawned

    Whether or not the object is spawned on the network.

    Declaration
    public bool isSpawned { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    networkID

    The network ID of this object in the scene.

    Declaration
    public ulong networkID { get; }
    Property Value
    Type Description
    UInt64
    | Improve this Doc View Source

    networkScene

    The network scene this object resides in.

    Declaration
    public NetworkScene networkScene { get; }
    Property Value
    Type Description
    NetworkScene
    | Improve this Doc View Source

    networkSceneID

    The scene that this object is in.

    Declaration
    public uint networkSceneID { get; }
    Property Value
    Type Description
    UInt32
    | Improve this Doc View Source

    ownerClientID

    The client ID of the owner.

    Declaration
    public ulong ownerClientID { get; }
    Property Value
    Type Description
    UInt64

    Methods

    | Improve this Doc View Source

    AddObserver(UInt64)

    Declaration
    public void AddObserver(ulong clientID)
    Parameters
    Type Name Description
    UInt64 clientID
    | Improve this Doc View Source

    ChangeOwnership(UInt64)

    Declaration
    public void ChangeOwnership(ulong newOwnerClientID)
    Parameters
    Type Name Description
    UInt64 newOwnerClientID
    | Improve this Doc View Source

    IsObserving(UInt64)

    Declaration
    public bool IsObserving(ulong clientID)
    Parameters
    Type Name Description
    UInt64 clientID
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    RemoveObserver(UInt64)

    Declaration
    public void RemoveObserver(ulong clientID)
    Parameters
    Type Name Description
    UInt64 clientID
    | Improve this Doc View Source

    RemoveOwnership()

    Declaration
    public void RemoveOwnership()
    | Improve this Doc View Source

    Spawn()

    Declaration
    public void Spawn()
    | Improve this Doc View Source

    SpawnAsPlayerObject(UInt64)

    Declaration
    public void SpawnAsPlayerObject(ulong clientID)
    Parameters
    Type Name Description
    UInt64 clientID
    | Improve this Doc View Source

    SpawnWithOwnership(UInt64)

    Declaration
    public void SpawnWithOwnership(ulong clientID)
    Parameters
    Type Name Description
    UInt64 clientID
    | Improve this Doc View Source

    UnSpawn()

    Declaration
    public void UnSpawn()
    • Improve this Doc
    • View Source
    In This Article
    Back to top (C) 2020 Reece Mackie. Released under the MIT License.