Photon Fusion 2.0.4

Public Member Functions | Public Attributes | Properties | List of all members
NetworkSceneObjectId Struct Reference

A unique identifier for a scene object. More...

Inherits IEquatable< NetworkSceneObjectId >.

Public Member Functions

bool Equals (NetworkSceneObjectId other)
 Check if two NetworkSceneObjectId are equal. More...
 
override bool Equals (object obj)
 Check if two NetworkSceneObjectId are equal. More...
 
override int GetHashCode ()
 Get the hash code of the NetworkSceneObjectId. More...
 
 NetworkSceneObjectId (SceneRef scene, int objectId, NetworkSceneLoadId loadId=default)
 TODO More...
 
override string ToString ()
 String representation of the NetworkSceneObjectId. More...
 

Public Attributes

NetworkSceneLoadId LoadId
 Unique identifier of a specific scene load. Needs to be used when loading multiple scenes with the same SceneRef or reloading a scene. For example, NetworkSceneInfo increments its internal LoadId every time a new scene is added. More...
 
int ObjectId
 Index of the object in the scene or any other form of unique identifier. More...
 
SceneRef Scene
 Identifies the scene in which the object is located. More...
 

Properties

bool IsValid [get]
 Signal if the NetworkSceneObjectId is valid. More...
 
int SceneLoadId [get]
 Use LoadId More...
 

Detailed Description

A unique identifier for a scene object.

Constructor & Destructor Documentation

◆ NetworkSceneObjectId()

NetworkSceneObjectId ( SceneRef  scene,
int  objectId,
NetworkSceneLoadId  loadId = default 
)

TODO

Parameters
scene
objectId
loadId

Member Function Documentation

◆ Equals() [1/2]

bool Equals ( NetworkSceneObjectId  other)

Check if two NetworkSceneObjectId are equal.

Parameters
otherAnother NetworkSceneObjectId to check for equality
Returns
Returns true if the two NetworkSceneObjectId are equal

◆ Equals() [2/2]

override bool Equals ( object  obj)

Check if two NetworkSceneObjectId are equal.

Parameters
objAnother NetworkSceneObjectId to check for equality
Returns
Returns true if the two NetworkSceneObjectId are equal

◆ GetHashCode()

override int GetHashCode ( )

Get the hash code of the NetworkSceneObjectId.

◆ ToString()

override string ToString ( )

String representation of the NetworkSceneObjectId.

Member Data Documentation

◆ LoadId

Unique identifier of a specific scene load. Needs to be used when loading multiple scenes with the same SceneRef or reloading a scene. For example, NetworkSceneInfo increments its internal LoadId every time a new scene is added.

◆ ObjectId

int ObjectId

Index of the object in the scene or any other form of unique identifier.

◆ Scene

SceneRef Scene

Identifies the scene in which the object is located.

Property Documentation

◆ IsValid

bool IsValid
get

Signal if the NetworkSceneObjectId is valid.

◆ SceneLoadId

int SceneLoadId
get

Use LoadId