Selector Editor
Overview
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.
Parameters
Selector Camera
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.
World Spacing
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.
Offset
Camera Forward Axis Offset.
Position
Offset for the Camera Position
Rotation
Offset for the Camera Position
Selector Type
Specifies the Items Distribution.
Radial
Distribute the items on a circular pattern.
Radius
The radius of the Distribution.
Axis
Direction Vector to distribute radially the items. (X -Right ,Y - Up ,Z - Forward).
Use World Rotation
The Items will keep the same initial Rotation (always facing the same direction) when changing the focused item.
Use Look Rotation
The items will look to the center of the selector.
Linear
Distribute the items on a linear pattern.
Distance:
The distance between items.
Linear X, Y ,Z
Axis multipliers for the items distances.
Grid
Distribute the items on a grid pattern.
Columns
How many columns have the grid.
W (Width)
The width of the grid
Height
The Height of the grid.
Custom
Items Type
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.
Rotation Offset
Add an extra rotation offset to the Items
Items
This is just for visual purposes, it shows the list of the items on the selector
Last updated