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

![](/files/-Lzx_a_2UI-u9y4EFfhj)

## **Parameters**

### **Selector Camera**

![](/files/-Lzx_a_3csaq8Yxd64ww)

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.

![](/files/-Lzx_a_43bHPfYwIrN63)

### **Axis**

Direction Vector to distribute radially the items. (X -Right ,Y - Up ,Z - Forward).

![](/files/-Lzx_a_5-A3kcNNMj1GC)

### **Use World Rotation**

The Items will keep the same initial Rotation (always facing the same direction) when changing the focused item.

![](/files/-Lzx_a_65oEy_I6fcgTh)

### **Use Look Rotation**

The items will look to the center of the selector.

![](/files/-Lzx_a_7lu-0JHPFHLkr)

### ***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.

![](/files/-Lzx_a_8knlLhB3UBqga)

### **W (Width)**

The width of the grid

![](/files/-Lzx_a_9hUCOYAJIN_5d)

### **Height**

The Height of the grid.

![](/files/-Lzx_a_ABBwXB310_KS-)

### ***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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/ultimate-selector/selector-editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
