OpenVRExpansion Plugin > Open VRExpansion Function Library > GetVRDeviceModelAndTexture

GetVRDeviceModelAndTexture

Gets the model / texture of a SteamVR Device, can use to fill procedural mesh components or just get the texture of them to apply to a pre-made model.
If the render model name override is empty then the render model name will be automatically retrieved from SteamVR and RenderModelNameOut will be filled with it.

Inputs

In
Exec

Render Model Name Override
String

Device Type
EBPOpenVRTrackedDeviceClass Enum

Procedural Mesh Components to Fill
Array of Procedural Mesh Component Object References

Create Collision
Boolean

Override Device ID
Integer

Outputs

On Success
Exec

On Success

Async Loading
Exec

On still loading async

On Failure
Exec

On Failure

Render Model Name Out
String

Return Value
Texture 2D Object Reference

Gets the model / texture of a SteamVR Device, can use to fill procedural mesh components or just get the texture of them to apply to a pre-made model.
If the render model name override is empty then the render model name will be automatically retrieved from SteamVR and RenderModelNameOut will be filled with it.