API reference
API reference
Select your platform
No SDKs available
No versions available

OVRMeshJobs Class

Defines a asynchronous jobs used for converting mesh data into Unity types.
Used by OVRMesh to convert mesh data obtained from the Meta Quest runtime into Unity data types.

Inner Structs

NativeArrayHelper Struct

Extends IDisposable
Helper struct that converts arrays to Unity NativeArray based on type.

Constructors

NativeArrayHelper ( ovrArray , length )
Constructor that performs the conversion from array to Unity NativeArray.
Signature
NativeArrayHelper(T[] ovrArray, int length)
Parameters
ovrArray: T[]  Input array to convert.
length: int  Length of the input array.

Fields

UnityNativeArray : NativeArray< T >
Signature
NativeArray<T> UnityNativeArray

Methods

Dispose ()
Safely disposes of allocated memory used when converting.
Signature
void Dispose()
Returns
void

TransformToUnitySpaceJob Struct

Extends IJobParallelFor
Asynchronous job that transforms mesh vertices, normals, UVs, and bone weights into Unity space.

Fields

BoneWeights : NativeArray< BoneWeight >
Signature
NativeArray<BoneWeight> BoneWeights
MeshBoneIndices : NativeArray< OVRPlugin.Vector4s >
Signature
NativeArray<OVRPlugin.Vector4s> MeshBoneIndices
MeshBoneWeights : NativeArray< OVRPlugin.Vector4f >
Signature
NativeArray<OVRPlugin.Vector4f> MeshBoneWeights
MeshNormals : NativeArray< OVRPlugin.Vector3f >
Signature
NativeArray<OVRPlugin.Vector3f> MeshNormals
MeshUV : NativeArray< OVRPlugin.Vector2f >
Signature
NativeArray<OVRPlugin.Vector2f> MeshUV
MeshVerticesPosition : NativeArray< OVRPlugin.Vector3f >
Signature
NativeArray<OVRPlugin.Vector3f> MeshVerticesPosition
Normals : NativeArray< Vector3 >
Signature
NativeArray<Vector3> Normals
UV : NativeArray< Vector2 >
Signature
NativeArray<Vector2> UV
Vertices : NativeArray< Vector3 >
Signature
NativeArray<Vector3> Vertices

Methods

Execute ( index )
Signature
void Execute(int index)
Parameters
index: int
Returns
void

TransformTrianglesJob Struct

Extends IJobParallelFor
Asynchronous job that rearranges mesh indicies into Unity required order for triangles.

Fields

MeshIndices : NativeArray< short >
Signature
NativeArray<short> MeshIndices
NumIndices : int
Signature
int NumIndices
Triangles : NativeArray< uint >
Signature
NativeArray<uint> Triangles

Methods

Execute ( index )
Signature
void Execute(int index)
Parameters
index: int
Returns
void