// Iterate through all the anchors in a room and print the label and the anchors' center
var room = MRUK.Instance.GetCurrentRoom();
foreach (var anchor in room.Anchors)
{ Debug.Log($"Anchor {anchor.Label} is centered at {anchor.GetAnchorCenter()}");}
FLOOR | = 1 << OVRSemanticLabels.Classification.Floor |
CEILING | = 1 << OVRSemanticLabels.Classification.Ceiling |
WALL_ | = 1 << OVRSemanticLabels.Classification.WallFace |
TABLE | = 1 << OVRSemanticLabels.Classification.Table |
COUCH | = 1 << OVRSemanticLabels.Classification.Couch |
DOOR_ | = 1 << OVRSemanticLabels.Classification.DoorFrame |
WINDOW_ | = 1 << OVRSemanticLabels.Classification.WindowFrame |
OTHER | = 1 << OVRSemanticLabels.Classification.Other |
STORAGE | = 1 << OVRSemanticLabels.Classification.Storage |
BED | = 1 << OVRSemanticLabels.Classification.Bed |
SCREEN | = 1 << OVRSemanticLabels.Classification.Screen |
LAMP | = 1 << OVRSemanticLabels.Classification.Lamp |
PLANT | = 1 << OVRSemanticLabels.Classification.Plant |
WALL_ | = 1 << OVRSemanticLabels.Classification.WallArt |
GLOBAL_ | = 1 << OVRSemanticLabels.Classification.SceneMesh |
INVISIBLE_ | = 1 << OVRSemanticLabels.Classification.InvisibleWallFace |
None | = 0 |
Plane | = 1 << 0 |
Volume | = 1 << 1 |
All | = Plane | Volume |