Why Meta Quest?
Design
Develop
API reference
Distribute
Blog
Support
Login
API reference
API reference
Select your platform
No SDKs available
No versions available
Overview
AlertViewHUD
Boundary
BoundaryTestResult
Fusion
AvatarBehaviourFusion
AvatarSpawnerFusion
CustomMatchmakingFusion
CustomNetworkObjectProvider
FusionBBEvents
FusionNetworkBootstrapper
LipSyncPhotonFix
PlayerNameTagFusion
PlayerNameTagSpawnerFusion
TransferOwnershipFusion
VoiceSetup
IOVRAnchorComponent
InlineLinkAttribute
Meta
XR
BuildingBlocks
BuildingBlocks
BuildingBlock
ControllerButtonsMapper
ControllerButtonsMapper
ButtonClickAction
InstallationRoutineCheckpoint
PassthroughProjectionSurfaceBuildingBlock
RoomMeshEvent
RunTimeUtils
SharedSpatialAnchorCore
SpatialAnchorCoreBuildingBlock
SpatialAnchorLoaderBuildingBlock
SpatialAnchorLocalStorageManagerBuildingBlock
SpatialAnchorSpawnerBuildingBlock
VariantCheckpoint
EnvironmentDepth
EnvironmentDepth
EnvironmentDepthManager
ImmersiveDebugger
ImmersiveDebugger
CustomIntegrationConfig
CustomIntegrationConfigBase
DebugData
DebugInspector
DebugMember
ExampleCustomIntegrationConfig
Gizmo
Gizmo
DebugGizmos
ICustomIntegrationConfig
InspectedData
RuntimeSettings
UserInterface
UserInterface
CategoryButton
Console
ConsoleLine
DebugBar
DebugInterface
DebugPanel
Generic
Generic
Background
Button
ButtonWithIcon
ButtonWithLabel
Controller
Cursor
Dropdown
Flex
Icon
Image
ImageStyle
InteractableController
Interface
Label
LayoutStyle
OverlayCanvas
OverlayCanvasPanel
Panel
PointerHandler
ScrollView
ScrollViewport
Slider
Style
Switch
TextArea
TextStyle
Toggle
PanelInputModule
Value
Values
InputActions
InputActions
InputActionDefinition
InputActionSet
RuntimeSettings
UserInputActionSet
MultiplayerBlocks
Colocation
Fusion
Fusion
AvatarBehaviourFusion
AvatarSpawnerFusion
CustomMatchmakingFusion
CustomNetworkObjectProvider
FusionBBEvents
FusionNetworkBootstrapper
LipSyncPhotonFix
PlayerNameTagFusion
PlayerNameTagSpawnerFusion
TransferOwnershipFusion
VoiceSetup
NGO
NGO
AutoMatchmakingNGO
AvatarBehaviourNGO
AvatarSpawnerNGO
ClientNetworkTransform
CustomMatchmakingNGO
NGONetworkBootstrapper
PlayerNameTagNGO
PlayerNameTagSpawnerNGO
TransferOwnershipNGO
Shared
Shared
ColocationController
CustomMatchmaking
CustomMatchmaking
ICustomMatchmakingBehaviour
RoomCreationOptions
RoomOperationResult
IAvatarBehaviour
IAvatarStreamConfig
INameTagSpawner
ITransferOwnership
PlayerNameTagSpawner
TransferOwnershipOnSelect
Samples
Telemetry
SampleTelemetryEvents
AnnotationTypes
EventTypes
Util
OVR
Scripts
Input
Input
UIButtonSquishHelper
OVRAnchor
OVRAnchor
FetchOptions
Tracker
TrackerConfiguration
OVRAnchorContainer
OVRAudioSourceTest
OVRAutoDestroyInMRC
OVRBody
OVRBone
OVRBoneCapsule
OVRBoundary
OVRBoundary
BoundaryTestResult
OVRBounded2D
OVRBounded3D
OVRBuildInfo
OVRCameraRig
OVRChromaticAberration
OVRColocationSession
OVRColocationSession
Data
OVRControllerDrivenHandPosesSample
OVRControllerHelper
OVRControllerTest
OVRControllerTest
BoolMonitor
OVRCubemapCapture
OVRCursor
OVRCustomFace
OVRCustomFaceExtensions
OVRCustomSkeleton
OVRDebugHeadController
OVRDebugInfo
OVRDisplay
OVRDisplay
EyeFov
EyeRenderDesc
LatencyData
OVRDynamicObject
OVREnumExtensions
OVRExtensions
OVREyeGaze
OVRFace
OVRFace
IMeshWeightsProvider
OVRFaceExpressions
OVRFaceExpressions
FaceExpressionsEnumerator
WeightProvider
OVRGLTFAccessor
OVRGLTFAnimatinonNode
OVRGLTFAnimationNodeMorphTargetHandler
OVRGLTFLoader
OVRGLTFScene
OVRGazePointer
OVRGrabbable
OVRGrabber
OVRGridCube
OVRHand
OVRHandTest
OVRHandTest
BoolMonitor
OVRHandTrackingWideMotionModeSample
OVRHaptics
OVRHaptics
Config
OVRHapticsChannel
OVRHapticsClip
OVRHeadsetEmulator
OVRHumanBodyBonesMappingsInterface
OVRInput
OVRInput
HapticsAmplitudeEnvelopeVibration
HapticsPcmVibration
OVRControllerBase
OVRControllerBase
VirtualAxis1DMap
VirtualAxis2DMap
VirtualButtonMap
VirtualNearTouchMap
VirtualTouchMap
OVRControllerGamepadPC
OVRControllerHands
OVRControllerLHand
OVRControllerLTouch
OVRControllerRHand
OVRControllerRemote
OVRControllerTouch
OpenVRControllerDetails
OVRInputRayData
OVRKeyboard
OVRKeyboard
TrackedKeyboardInfo
TrackedKeyboardState
OVRKtxTexture
OVRLayerAttribute
OVRLocatable
OVRLocatable
GetSceneAnchorPosesJob
GetSpatialAnchorPosesJob
SetLocalSpaceTransformsJob
SetWorldSpaceTransformsJob
TrackingSpacePose
TransformPosesJob
OVRManager
OVRManager
EventListener
PassthroughCapabilities
OVRMaterialData
OVRMesh
OVRMesh
IOVRMeshDataProvider
OVRMeshAttributes
OVRMeshData
OVRMeshJobs
OVRMeshJobs
NativeArrayHelper
TransformToUnitySpaceJob
TransformTrianglesJob
OVRMeshRenderer
OVRMeshRenderer
IOVRMeshRendererDataProvider
MeshRendererData
OVRMixedRealityCaptureTest
OVRModeParms
OVRMonoscopic
OVRNativeBuffer
OVRNativeList
OVRNativeList
CapacityHelper
OVRNetwork
OVRNetwork
OVRNetworkTcpClient
OVRNetworkTcpServer
OVRNodeStateProperties
OVROverlay
OVROverlay
LayerTexture
OVROverlayCanvas
OVROverlayCanvasSettings
OVROverlayMeshGenerator
OVRPassthroughColorLut
OVRPassthroughLayer
OVRPermissionsRequester
OVRPlatformMenu
OVRPlayerController
OVRPointerVisualizer
OVRPose
OVRProfile
OVRProgressIndicator
OVRRayHelper
OVRRayTransformer
OVRRaycaster
OVRResetOrientation
OVRResources
OVRResult
OVRRoomLayout
OVRRuntimeAssetsBase
OVRRuntimeController
OVRRuntimeSettings
OVRScene
OVRSceneAnchor
OVRSceneLoader
OVRSceneManager
OVRSceneManager
Classification
RoomLayoutInformation
OVRSceneModelLoader
OVRSceneObjectTransformType
OVRScenePlane
OVRScenePlaneMeshFilter
OVRScenePrefabOverride
OVRSceneRoom
OVRSceneSampleController
OVRSceneVolume
OVRSceneVolumeMeshFilter
OVRScreenFade
OVRSemanticClassification
OVRSemanticLabels
OVRSharable
OVRSimultaneousHandsAndControllersSample
OVRSkeleton
OVRSkeleton
IOVRSkeletonDataProvider
SkeletonPoseData
OVRSkeletonRenderer
OVRSkeletonRenderer
IOVRSkeletonRendererDataProvider
SkeletonRendererData
OVRSpace
OVRSpaceUser
OVRSpatialAnchor
OVRSpatialAnchor
EraseOptions
LoadOptions
SaveOptions
UnboundAnchor
OVRSpectatorModeDomeTest
OVRStorable
OVRSystemPerfMetrics
OVRSystemPerfMetrics
OVRSystemPerfMetricsTcpServer
PerfMetrics
OVRTask
OVRTask
Awaiter
OVRTaskBuilder
OVRTextureData
OVRTrackedKeyboard
OVRTrackedKeyboard
TrackedKeyboardSetActiveEvent
TrackedKeyboardVisibilityChangedEvent
OVRTrackedKeyboardHands
OVRTrackedKeyboardHands
TrackedKeyboardHandsVisibilityChangedEvent
OVRTrackedKeyboardSampleControls
OVRTracker
OVRTracker
Frustum
OVRTriangleMesh
OVRUnityHumanoidSkeletonRetargeter
OVRUnityHumanoidSkeletonRetargeter
JointAdjustment
OVRHumanBodyBonesMappings
OVRSkeletonMetadata
OVRSkeletonMetadata
BoneData
OVRVignette
OVRVirtualKeyboard
OVRVirtualKeyboard
AbstractTextHandler
ITextHandler
InteractorRootTransformOverride
WaitUntilKeyboardVisible
OVRVirtualKeyboardInputFieldTextHandler
OVRVirtualKeyboardSampleControls
OVRVirtualKeyboardSampleInputHandler
OVRWaitCursor
OperationResultExtensions
ProcessPort
RoomMeshAnchor
SharedSpatialAnchorErrorHandler
Code samples
Downloads
Release notes
Supported platforms
OVRGLTFAccessor
​
Back to Supported platforms
OVRGLTFAccessor Class
Extends
IDisposable
Helper class used by
OVRGLTFLoader
to load GLTF (GL Transmission Format) data buffers using appropriate accessors and translates them into corresponding Unity data types when applicable.
This class follows the GLTF 2.0 specification for loading data. For more information, refer to the
Binary Data Storage
section on the GLTF 2.0 specification site.
This class is intended to be used in conjunction with the
. It is not recommended to use these functions outside of the context of GLTF loading.
Static Member Functions
static bool
TryCreate
( JSONNode accessorsRoot,
JSONNode bufferViewsRoot,
JSONNode buffersRoot,
Stream binaryChunk,
out
OVRGLTFAccessor
dataAccessor )
Tries to create a
OVRGLTFAccessor
object by checking if the binary stream data provided is a valid GLTF binary chunk.
Parameters
accessorsRoot
JSON node containing the GLTF accessors.
bufferViewsRoot
JSON node containing the GLTF buffer views.
buffersRoot
JSON node containing the GLTF buffers.
binaryChunk
Binary stream of the entire GLTF file.
dataAccessor
A valid
OVRGLTFAccessor
that can be used to access data in the GLTF binary stream.
Returns
If the
OVRGLTFAccessor
was created successfully.
Member Functions
void
Seek
( int accessorIndex,
bool onlyBufferView )
Indexes into the GLTF accessors JSONNode provided to the
TryCreate
method and moves the binary data stream position based on the accessor's data.
Parameters
accessorIndex
The index to a accessor in the accessor array.
onlyBufferView
If the position should be set to just the start of the buffer view.
float[]
ReadFloat
( )
Reads data as floats from the binary stream, using the current accessor set by
Seek
.
Returns
An array of floats.
int[]
ReadInt
( )
Read data as integers from the binary stream, using the current accessor set by
Seek
.
Returns
An array of integers.
Vector2[]
ReadVector2
( )
Read data as 2D vectors from the binary stream, using the current accessor set by
Seek
Returns
An array of Vector2s
Vector3[]
ReadVector3
( Vector3 conversionScale )
Read data from the binary stream as 3D vectors, using the current accessor set by
Seek
.
Parameters
conversionScale
Coversion scale that is applied to each Vector3.
Returns
An array of Vector3s
Vector4[]
ReadVector4
( Vector4 conversionScale )
Read data from the binary stream as 4D vectors, using the current accessor set by
Seek
.
Parameters
conversionScale
Coversion scale that is applied to each Vector4.
Returns
An array of Vector4s
Color[]
ReadColor
( )
Read data from the binary stream as colors, using the current accessor set by
Seek
.
Returns
An array of Colors.
void
ReadWeights
( ref BoneWeight[] resultsBoneWeights )
Read data from the binary stream as bone weights, using the current accessor set by
Seek
.
Parameters
resultsBoneWeights
Output array of BoneWeights.
void
ReadJoints
( ref BoneWeight[] resultsBoneWeights )
Read data from the binary stream as bone indices, using the current accessor set by
Seek
.
Parameters
resultsBoneWeights
Output array of BoneWeights.
Quaternion[]
ReadQuaterion
( Vector4 gltfToUnitySpaceRotation )
Read data from the binary stream as Quaternions, using the current accessor set by
Seek
.
Parameters
gltfToUnitySpaceRotation
The conversion value to apply to translate from GLTF space to Unity space.
Returns
An array of Quaternions.
Matrix4x4[]
ReadMatrix4x4
( Vector3 conversionScale )
Read data from the binary stream as a Matrix 4x4, using the current accessor set by
Seek
.
Parameters
conversionScale
Conversion scale to be applied to each 4x4 matrix.
Returns
An array of Matrix4x4.
byte[]
ReadBuffer
( int bufferViewIndex )
Read the binary stream using a specific buffer view.
Parameters
bufferViewIndex
Index of a buffer view to use out of all buffer views.
Returns
An array of byte data the buffer view points to.
void
Dispose
( )
Disposes the BinaryReader if being used for accessing the Stream.
int
GetDataCount
( )
Gets the total number of GLTF accessors loaded from the GLTF file.
Returns
Total number of GLTF accessors.
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
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
Horizon 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
Horizon 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