API reference
API reference
Select your platform
No SDKs available
No versions available

MRUKSceneEventListener Interface

Listener interface for Mixed Reality Utility Kit (MRUK) scene events.
Implement this interface to receive callbacks when rooms and anchors are added, removed, or updated in the scene. All methods have default no-op implementations, so only override the methods relevant to your use case.

See Also

Signature

interface MRUKSceneEventListener

Functions

onAnchorAdded ( room , anchor )
Called when a new anchor is added to a room.
Signature
open fun onAnchorAdded(room: MRUKRoom, anchor: Entity)
Parameters
room: MRUKRoom
  The MRUKRoom containing the anchor
anchor: Entity
  The Entity anchor that was added
onAnchorRemoved ( room , anchor )
Called when an anchor is removed from a room.
Signature
open fun onAnchorRemoved(room: MRUKRoom, anchor: Entity)
Parameters
room: MRUKRoom
  The MRUKRoom that contained the anchor
anchor: Entity
  The Entity anchor that was removed
onAnchorUpdated ( room , anchor )
Called when an anchor's properties change.
Signature
open fun onAnchorUpdated(room: MRUKRoom, anchor: Entity)
Parameters
room: MRUKRoom
  The MRUKRoom containing the anchor
anchor: Entity
  The Entity anchor that was updated
onRoomAdded ( room )
Called when a new room is discovered and added to the scene.
Signature
open fun onRoomAdded(room: MRUKRoom)
Parameters
room: MRUKRoom
  The MRUKRoom instance that was added
onRoomRemoved ( room )
Called when a room is removed from the scene.
Signature
open fun onRoomRemoved(room: MRUKRoom)
Parameters
room: MRUKRoom
  The MRUKRoom instance that was removed
onRoomUpdated ( room )
Called when an existing room's properties or anchors change.
Signature
open fun onRoomUpdated(room: MRUKRoom)
Parameters
room: MRUKRoom
  The MRUKRoom instance that was updated