Model Clicked
Triggers every time the model is clicked. Depending on the config, it also triggers when you click anywhere in the VTS window even if the click wasn't on the model.
Variables
The following variables will be populated when this trigger executes:
Description | ||
---|---|---|
clickPosition.X | double | The X position of the click in the usual coordinate system Example: 0.276041656732559 |
clickPosition.Y | double | The Y position of the click in the usual coordinate system Example: 0.0166666675359011 |
clickedArtMeshCount | int | The number of ArtMeshes at the click position if the model was clicked |
modelId | string | The model's ID Example: 62c6a71a4d324204afd25f61445f8e4f |
modelLoaded | bool | Flag whether the model has been loaded or not. Example: True/False |
modelName | string | The model's name Example: Hijiki |
modelWasClicked | bool | Flag whether the model has been clicked or not. Example: True/False |
mouseButtonId | int | The ID of the mouse button (0 is left-click, 1 is right-click and 2 is middle-click (mouse-wheel click)) |
windowSize.X | int | current VTS X axis window size in pixels Example: 1920 |
windowSize.Y | int | current VTS Y axis window size in pixels Example: 1080 |