Selector Editor
Last updated
Last updated
This Script manages the distribution of all items. it can be Radial, Linear, Grid or Custom. Set the correct position of the Selector Camera and add some offsets.
This script only works on the Editor, when the game is running this script automatically is disabled.
Is the Camera used for the selector items.. this camera should have this settings:
Being Clear flags to Depth Only, and on the Culling Mask just the UI Layer Mask.
If this option is selected, then The camera is no longer child of the Selector. It should be child of the Main Camera, Use this when the the Selector on the hands of a character, on VR mode, etc.
Camera Forward Axis Offset.
Offset for the Camera Position
Offset for the Camera Position
Specifies the Items Distribution.
Distribute the items on a circular pattern.
The radius of the Distribution.
Direction Vector to distribute radially the items. (X -Right ,Y - Up ,Z - Forward).
The Items will keep the same initial Rotation (always facing the same direction) when changing the focused item.
The items will look to the center of the selector.
Distribute the items on a linear pattern.
The distance between items.
Axis multipliers for the items distances.
Distribute the items on a grid pattern.
How many columns have the grid.
The width of the grid
The Height of the grid.
Specifies the Items Render Type, if is Mesh, Sprite or Canvas. This allows to use the proper selection for the items. Set the one that fits your game.
Add an extra rotation offset to the Items
This is just for visual purposes, it shows the list of the items on the selector