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.
0.2.4

Variables

The following variables will be populated when this trigger executes:

Description
clickPosition.Xdouble

The X position of the click in the usual coordinate system

Example: 0.276041656732559
clickPosition.Ydouble

The Y position of the click in the usual coordinate system

Example: 0.0166666675359011
clickedArtMeshCountint

The number of ArtMeshes at the click position if the model was clicked

modelIdstring

The model's ID

Example: 62c6a71a4d324204afd25f61445f8e4f
modelLoadedbool

Flag whether the model has been loaded or not.

Example: True/False
modelNamestring

The model's name

Example: Hijiki
modelWasClickedbool

Flag whether the model has been clicked or not.

Example: True/False
mouseButtonIdint

The ID of the mouse button (0 is left-click, 1 is right-click and 2 is middle-click (mouse-wheel click))

windowSize.Xint

current VTS X axis window size in pixels

Example: 1920
windowSize.Yint

current VTS Y axis window size in pixels

Example: 1080