Spelunx Cavern SDK
 
Loading...
Searching...
No Matches
Spelunx.Vive.OVRT_RenderModel Class Reference
Inheritance diagram for Spelunx.Vive.OVRT_RenderModel:
Inheritance graph
Collaboration diagram for Spelunx.Vive.OVRT_RenderModel:
Collaboration graph

Classes

class  RenderModel
 
class  RenderModelInterfaceHolder
 

Public Member Functions

void SetMeshRendererState (bool state)
 
void UpdateModel ()
 
Transform FindTransformByName (string componentName, Transform inTransform=null)
 
Transform GetComponentTransform (string componentName)
 
void UpdateComponents (CVRRenderModels renderModels)
 
void SetDeviceIndex (int newIndex)
 

Public Attributes

OVRT_TrackedDevice trackedDevice
 
OVRT_TrackedObject.EIndex index = OVRT_TrackedObject.EIndex.None
 
string modelOverride
 
Shader shader
 
bool verbose = false
 
bool createComponents = true
 
bool updateDynamically = true
 
bool fixTrackerModelCenter = true
 
RenderModel_ControllerMode_State_t controllerModeState
 

Static Public Attributes

const string modelOverrideWarning
 
const string k_localTransformName = "attach"
 
static Hashtable models = new Hashtable()
 
static Hashtable materials = new Hashtable()
 

Properties

string renderModelName [get]
 
bool initializedAttachPoints [get, set]
 

Detailed Description

Definition at line 14 of file OVRT_RenderModel.cs.

Member Function Documentation

◆ FindTransformByName()

Transform Spelunx.Vive.OVRT_RenderModel.FindTransformByName ( string  componentName,
Transform  inTransform = null 
)
inline

Definition at line 505 of file OVRT_RenderModel.cs.

◆ GetComponentTransform()

Transform Spelunx.Vive.OVRT_RenderModel.GetComponentTransform ( string  componentName)
inline

Definition at line 520 of file OVRT_RenderModel.cs.

◆ SetDeviceIndex()

void Spelunx.Vive.OVRT_RenderModel.SetDeviceIndex ( int  newIndex)
inline

Definition at line 861 of file OVRT_RenderModel.cs.

◆ SetMeshRendererState()

void Spelunx.Vive.OVRT_RenderModel.SetMeshRendererState ( bool  state)
inline

Definition at line 121 of file OVRT_RenderModel.cs.

◆ UpdateComponents()

void Spelunx.Vive.OVRT_RenderModel.UpdateComponents ( CVRRenderModels  renderModels)
inline

Definition at line 788 of file OVRT_RenderModel.cs.

◆ UpdateModel()

void Spelunx.Vive.OVRT_RenderModel.UpdateModel ( )
inline

Definition at line 153 of file OVRT_RenderModel.cs.

Member Data Documentation

◆ controllerModeState

RenderModel_ControllerMode_State_t Spelunx.Vive.OVRT_RenderModel.controllerModeState

Definition at line 44 of file OVRT_RenderModel.cs.

◆ createComponents

bool Spelunx.Vive.OVRT_RenderModel.createComponents = true

Definition at line 35 of file OVRT_RenderModel.cs.

◆ fixTrackerModelCenter

bool Spelunx.Vive.OVRT_RenderModel.fixTrackerModelCenter = true

Definition at line 41 of file OVRT_RenderModel.cs.

◆ index

OVRT_TrackedObject.EIndex Spelunx.Vive.OVRT_RenderModel.index = OVRT_TrackedObject.EIndex.None

Definition at line 18 of file OVRT_RenderModel.cs.

◆ k_localTransformName

const string Spelunx.Vive.OVRT_RenderModel.k_localTransformName = "attach"
static

Definition at line 47 of file OVRT_RenderModel.cs.

◆ materials

Hashtable Spelunx.Vive.OVRT_RenderModel.materials = new Hashtable()
static

Definition at line 79 of file OVRT_RenderModel.cs.

◆ modelOverride

string Spelunx.Vive.OVRT_RenderModel.modelOverride

Definition at line 26 of file OVRT_RenderModel.cs.

◆ modelOverrideWarning

const string Spelunx.Vive.OVRT_RenderModel.modelOverrideWarning
static
Initial value:
= "Model override is really only meant to be used in " +
"the scene view for lining things up; using it at runtime is discouraged. Use tracked device " +
"index instead to ensure the correct model is displayed for all users."

Definition at line 21 of file OVRT_RenderModel.cs.

◆ models

Hashtable Spelunx.Vive.OVRT_RenderModel.models = new Hashtable()
static

Definition at line 78 of file OVRT_RenderModel.cs.

◆ shader

Shader Spelunx.Vive.OVRT_RenderModel.shader

Definition at line 29 of file OVRT_RenderModel.cs.

◆ trackedDevice

OVRT_TrackedDevice Spelunx.Vive.OVRT_RenderModel.trackedDevice

Definition at line 16 of file OVRT_RenderModel.cs.

◆ updateDynamically

bool Spelunx.Vive.OVRT_RenderModel.updateDynamically = true

Definition at line 38 of file OVRT_RenderModel.cs.

◆ verbose

bool Spelunx.Vive.OVRT_RenderModel.verbose = false

Definition at line 32 of file OVRT_RenderModel.cs.

Property Documentation

◆ initializedAttachPoints

bool Spelunx.Vive.OVRT_RenderModel.initializedAttachPoints
getset

Definition at line 52 of file OVRT_RenderModel.cs.

◆ renderModelName

string Spelunx.Vive.OVRT_RenderModel.renderModelName
get

Definition at line 50 of file OVRT_RenderModel.cs.


The documentation for this class was generated from the following file: