Photon Fusion 2.0.0

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.
 
override bool Equals (object obj)
 Check if two NetworkSceneObjectId are equal.
 
override int GetHashCode ()
 Get the hash code of the NetworkSceneObjectId.
 
override string ToString ()
 String representation of the NetworkSceneObjectId.
 

Public Attributes

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.
 
int SceneLoadId
 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.
 

Properties

bool IsValid [get]
 Signal if the NetworkSceneObjectId is valid.
 

Detailed Description

A unique identifier for a scene object.

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