Why Meta Quest?
Design
Develop
API references
Distribute
Blog
Support
Login
MR Utility Kit v71 Reference Guide
MR Utility Kit v71 Reference Guide
Unity
Select your SDK
Overview
Meta
XR
XR
EnvironmentRaycastHit
EnvironmentRaycastManager
MRUtilityKit
MRUtilityKit
AnchorPrefabSpawner
AnchorPrefabSpawner
AnchorPrefabGroup
AnchorPrefabSpawnerUtilities
Data
Data
AnchorData
GlobalMeshData
PlaneBoundsData
RoomData
RoomLayoutData
SceneData
TransformData
VolumeBoundsData
DestructibleGlobalMesh
DestructibleGlobalMeshSpawner
DestructibleMeshComponent
DestructibleMeshComponent
MeshSegment
MeshSegmentationResult
EffectMesh
EffectMesh
EffectMeshObject
TextureCoordinateModes
FindSpawnPositions
GridSliceResizer
ICustomAnchorPrefabSpawner
LabelFilter
MRUK
MRUK
MRUKSettings
SceneTrackingSettings
MRUKAnchor
MRUKRoom
MRUKRoom
CouchSeat
MRUKStart
MRUKTrackable
RoomGuardian
SceneDebugger
SceneNavigation
SerializationHelpers
ShowWhenAttribute
SpaceMap
SpaceMapGPU
SpacePerimeter
Triangulator
Utilities
NavPathVisual
Code samples
Downloads
Release notes
ShowWhenAttribute Class
Extends
PropertyAttribute
Attribute used to show or hide a field depending on certain conditions.
Fields
readonly string
ConditionFieldName
[Get]
Name of the field.
readonly object
CompareValue
[Get]
Value to compare against.
readonly object[]
CompareValueArray
[Get]
Multiple values to compare against.
Member Functions
ShowWhenAttribute
( string conditionFieldName )
Attribute used to show or hide the Field depending on certain conditions.
Parameters
conditionFieldName
Name of the bool condition Field
ShowWhenAttribute
( string conditionFieldName,
object compareValue )
Attribute used to show or hide the Field depending on certain conditions.
Parameters
conditionFieldName
Name of the Field to compare (bool, enum, int or float)
compareValue
Value to compare
ShowWhenAttribute
( string conditionFieldName,
object[] compareValueArray )
Attribute used to show or hide the Field depending on certain conditions.
Parameters
conditionFieldName
Name of the Field to compare (bool, enum, int or float)
compareValueArray
Array of values to compare (only for enums)
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