Photon Fusion 2.1.1

NetworkSceneObjectId Struct Reference

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

Public Member Functions

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

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.
int ObjectId
 Index of the object in the scene or any other form of unique identifier.
SceneRef Scene
 Identifies the scene in which the object is located.

Properties

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

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]

readonly 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]

readonly 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