An RTS style selection box control
1 Overview
3 Methods
4 Usage
6 See also
A selection box control to enable selecting 2D and 3D content within a Canvas / selectable area
The properties of the Selectable Scalar control are as follows:
Property | Description |
---|---|
Color | The color to apply to the selectable. |
Art | The texture to draw as the background to the selectable area. |
Selection Mask | The Rect Transform for the area that allows items to be selectable, restricts object being selected. |
Add the Selection Box component to a Canvas element and then define a separate Rect Transform to specify the area of the screen that should be selectable. Once setup, any objects that are contained within the Selection mask will be selectable.
Additionally, you can customize the graphic used for the “Selection Box” that is drawn using the Art property.
N/A
N/A