Class NetworkIdentity
A Network Identity.
This manages the attached object's (and it's children) network presence.
Inheritance
NetworkIdentity
Assembly: FNNLib.dll
Syntax
public class NetworkIdentity : MonoBehaviour
Fields
|
Improve this Doc
View Source
prefabHash
Declaration
Field Value
|
Improve this Doc
View Source
prefabHashGenerator
The prefab hash generator
Declaration
public string prefabHashGenerator
Field Value
|
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
Properties
|
Improve this Doc
View Source
behaviours
Declaration
public List<NetworkBehaviour> behaviours { get; }
Property Value
|
Improve this Doc
View Source
isLocalPlayer
Whether or not this is the local player's player object.
Declaration
public bool isLocalPlayer { get; }
Property Value
|
Improve this Doc
View Source
isOwnedByServer
Declaration
public bool isOwnedByServer { get; }
Property Value
|
Improve this Doc
View Source
isOwner
Whether or not the local player has ownership over this object.
Declaration
public bool isOwner { get; }
Property Value
|
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
|
Improve this Doc
View Source
isSceneObject
Whether or not this object was spawned with the scene.
Declaration
public bool? isSceneObject { get; }
Property Value
|
Improve this Doc
View Source
isSpawned
Whether or not the object is spawned on the network.
Declaration
public bool isSpawned { get; }
Property Value
|
Improve this Doc
View Source
networkID
The network ID of this object in the scene.
Declaration
public ulong networkID { get; }
Property Value
|
Improve this Doc
View Source
networkScene
The network scene this object resides in.
Declaration
public NetworkScene networkScene { get; }
Property Value
|
Improve this Doc
View Source
networkSceneID
The scene that this object is in.
Declaration
public uint networkSceneID { get; }
Property Value
|
Improve this Doc
View Source
ownerClientID
The client ID of the owner.
Declaration
public ulong ownerClientID { get; }
Property Value
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
|
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
|
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