Why Meta Quest?
Design
Develop
API reference
Distribute and grow
Blog
Support
Login
API reference
API reference
Select your platform
No SDKs available
No versions available
Overview
Meta
XR
XR
EnvironmentRaycastHit
EnvironmentRaycastManager
MRUtilityKit
MRUtilityKit
AnchorPrefabSpawner
AnchorPrefabSpawner
AnchorPrefabGroup
AnchorPrefabSpawnerUtilities
BuildingBlocks
BuildingBlocks
GrabAndLocate
PlaceWithAnchor
PointAndLocate
SpaceLocator
VisualizeEnvRaycast
DestructibleGlobalMesh
DestructibleGlobalMeshSpawner
DestructibleMeshComponent
DestructibleMeshComponent
MeshSegment
MeshSegmentationResult
EffectMesh
EffectMesh
EffectMeshObject
TextureCoordinateModes
FindSpawnPositions
GridSliceResizer
ICustomAnchorPrefabSpawner
LabelFilter
MRUK
MRUK
MRUKSettings
MRUKAnchor
MRUKRoom
MRUKRoom
CouchSeat
MRUKStart
MRUKTrackable
RoomGuardian
SceneDebugger
SceneDecorator
SceneDecorator
AnchorComponentDistanceMask
AnchorDistanceMask
Candidate
CellularNoiseMask
CircularPool
ColliderMask
CompositeMaskAdd
CompositeMaskAdd
MaskLayer
CompositeMaskAvg
CompositeMaskMax
CompositeMaskMin
CompositeMaskMul
ConstantMask
Constraint
CookieMask
DontDestroyOnLoadModifier
FixedPool
GridDistribution
HeightMask
InsideCurrentRoomMask
KeepUprightWithAnchorModifier
KeepUprightWithSurfaceModifier
Mask
Mask2D
Modifier
NotInsideMask
Pool
Pool
Callbacks
Entry
PoolManager
PoolManagerComponent
PoolManagerComponent
CallbackProvider
PoolManagerSingleton
RandomDistribution
RandomMask
RayDistanceMask
RotationModifier
RotationModifierSpaceMap
ScaleModifier
ScaleModifier
AxisParameters
ScaleUniformModifier
SceneDecoration
SceneDecorator
SceneDecorator
IDistribution
SimplexDistribution
SimplexDistribution
PointSamplingConfig
SimplexNoiseMask
SingletonMonoBehaviour
SingletonMonoBehaviour
InstantiationSettings
SlopeMask
SpaceMapGPUMask
SpaceMapMask
StaggeredConcentricDistribution
StochasticMask
SceneNavigation
SerializationHelpers
SpaceMap
SpaceMapGPU
Triangulator
Utilities
Code samples
Downloads
Release notes
Supported platforms
Meta
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]
Properties
bool
_roomHasChanged
[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.
Static Member Functions
static void
DebugDestructibleMeshComponent
(
DestructibleMeshComponent
destructibleMeshComponent )
Debugging method to color each segment with a unique color.
Parameters
destructibleMeshComponent
The DestructibleMeshComponent to be debugged.
Did you find this page helpful?
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
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
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
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
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
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)
© 2025 Meta