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

OVROverlayMeshGenerator Class

Extends MonoBehaviour
When attached to a GameObject with an OVROverlay component, OVROverlayMeshGenerator will use a mesh renderer to preview the appearance of the OVROverlay as it would appear as a TimeWarp overlay on a headset.

Protected Functions

void OnEnable ( )
void OnDestroy ( )

Member Functions

void SetOverlay
( OVROverlay overlay )

Static Member Functions

static void GenerateMesh
( List< Vector3 > verts,
List< Vector2 > uvs,
List< Vector4 > cubeUVs,
List< int > tris,
Vector3 position,
Quaternion rotation,
Vector3 scale,
Rect rect )
static void BuildSphere
( List< Vector3 > verts,
List< Vector2 > uv,
List< int > triangles,
Vector3 position,
Quaternion rotation,
Vector3 scale,
Rect rect,
float worldScale,
int latitudes,
int longitudes,
float expandCoefficient )
static void BuildCube
( List< Vector3 > verts,
List< Vector2 > uv,
List< Vector4 > cubeUV,
List< int > triangles,
Vector3 position,
Quaternion rotation,
Vector3 scale,
float worldScale,
int subQuads,
float expandCoefficient )
static void BuildQuad
( List< Vector3 > verts,
List< Vector2 > uv,
List< int > triangles,
Rect rect )
static void BuildHemicylinder
( List< Vector3 > verts,
List< Vector2 > uv,
List< int > triangles,
Vector3 scale,
Rect rect,
int longitudes )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon