GetControllerModel

This function retrieves a VR controller model. It will display the correct model for all supported VR systems. The model will be positioned and rotated automatically according to the player's movements.

Controllers take a moment to register in the VR environment, and the visual model is asynchronously loaded so as not to pause the game. Therefore your code should account for the possibility that this function will sometimes return NULL.

By default a visual representation of the user's VR hardware will be displayed. If you want to replace the controllers with weapons or other items, simply hide the controller models.

Syntax

Parameters

Returns

Returns the controller model if it is active and has been loaded, othereise NULL is returned.