Why Meta Quest?
Design
Develop
API references
Distribute
Blog
Support
Login
MR Utility Kit v69 Reference Guide
MR Utility Kit v69 Reference Guide
Unity
Select your SDK
Overview
FindSpawnPositions
Meta
XR
MRUtilityKit
MRUtilityKit
AnchorPrefabSpawner
AnchorPrefabSpawner
AnchorPrefabGroup
AnchorPrefabSpawnerUtilities
Data
Data
AnchorData
GlobalMeshData
PlaneBoundsData
RoomData
RoomLayoutData
SceneData
TransformData
VolumeBoundsData
EffectMesh
EffectMesh
EffectMeshObject
TextureCoordinateModes
EnableUnpremultipliedAlpha
GridSliceResizer
ICustomAnchorPrefabSpawner
LabelFilter
MRUK
MRUK
MRUKSettings
SceneTrackingSettings
MRUKAnchor
MRUKRoom
MRUKRoom
CouchSeat
MRUKStart
RoomGuardian
SceneDebugger
SceneNavigation
SerializationHelpers
SpaceMap
SpaceMapGPU
Triangulator
Utilities
Code samples
Downloads
Release notes
SceneDebugger Class
Extends
MonoBehaviour
Provides debugging tools for visualizing and interacting with the scene data.
Fields
Material
visualHelperMaterial
[Get]
bool
ShowDebugAnchors
[Get]
bool
MoveCanvasInFrontOfCamera
[Get]
bool
SetupInteractions
[Get]
TextMeshProUGUI
logs
[Get]
TMP_Dropdown
surfaceTypeDropdown
[Get]
TMP_Dropdown
exportGlobalMeshJSONDropdown
[Get]
TMP_Dropdown
positioningMethodDropdown
[Get]
TextMeshProUGUI
RoomDetails
[Get]
List< Image >
Tabs
[Get]
List< CanvasGroup >
Menus
[Get]
OVRRayHelper
RayHelper
[Get]
OVRInputModule
InputModule
[Get]
OVRRaycaster
Raycaster
[Get]
OVRGazePointer
GazePointer
[Get]
Member Functions
void
ShowRoomDetailsDebugger
( bool isOn )
Shows information about the rooms loaded.
Parameters
isOn
If set to true, room details will be shown.
void
GetKeyWallDebugger
( bool isOn )
Highlights the room's key wall, defined as the longest wall in the room which has no other room points behind it.
Parameters
isOn
If set to true, the key wall will be highlighted.
void
GetLargestSurfaceDebugger
( bool isOn )
Highlights the anchor with the largest available surface area.
Parameters
isOn
If set to true, the largest surface will be highlighted.
void
GetClosestSeatPoseDebugger
( bool isOn )
Highlights the best-suggested seat, for something like remote caller placement.
Parameters
isOn
If set to true, the closest seat pose will be highlighted.
void
GetClosestSurfacePositionDebugger
( bool isOn )
Highlights the closest position on a SceneAPI surface.
Parameters
isOn
If set to true, the closest surface position will be highlighted.
void
GetBestPoseFromRaycastDebugger
( bool isOn )
Highlights the best suggested transform to place a widget on a surface.
Parameters
isOn
If set to true, the best pose from raycast will be highlighted.
void
RayCastDebugger
( bool isOn )
Casts a ray cast forward from the right controller position and draws the normal of the first Scene API object hit.
Parameters
isOn
If set to true, the raycast hits with scene objects will be visualized.
void
IsPositionInRoomDebugger
( bool isOn )
Moves the debug sphere to the controller position and colors it in green if its position is in the room, red otherwise.
Parameters
isOn
If set to true, the position of the debug sphere will be checked.
void
ShowDebugAnchorsDebugger
( bool isOn )
Shows the debug anchor visualization mode for the anchor being pointed at.
Parameters
isOn
If set to true, debug anchors will be visualized.
void
DisplayGlobalMesh
( bool isOn )
Displays the global mesh anchor if one is found in the scene.
Parameters
isOn
If set to true, the global mesh will be displayed.
void
ToggleGlobalMeshCollisions
( bool isOn )
Toggles the global mesh anchor's collision.
Parameters
isOn
If set to true, collisions for the global mesh anchor will be enabled
void
ExportJSON
( bool isOn )
Exports the current scene data to a JSON file if the specified condition is met.
Parameters
isOn
If set to true, the scene data will be exported to JSON.
void
DisplaySpaceMap
( bool isOn )
Displays a texture in the right info panel about your spacemap.
Parameters
isOn
No action needed as the SpaceMap does not need additional logic
void
DisplayNavMesh
( bool isOn )
Displays the nav mesh, if present.
Parameters
isOn
If set to true, the navigation mesh will be displayed, if present
void
ActivateTab
( Image selectedTab )
Activates the selected tab by changing its color and sets all other tabs to the background color.
Parameters
selectedTab
The tab image to activate.
void
ActivateMenu
( CanvasGroup menuToActivate )
Activates the specified menu by enabling its canvas group and disables all other menus.
Parameters
menuToActivate
The canvas group of the menu to activate.
Did you find this page helpful?
Build with Meta
Social Technologies
Meta Horizon
AI
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
English (US)
©2024 Meta