Renders multiple rectangles at the same time. More...
Public Member Functions | |
| UISprite (int maxUnitCount) | |
| Constructor. | |
| UISpriteUnit | GetUnit (int index) |
| Obtains the rectangle. | |
Protected Member Functions | |
| override void | DisposeSelf () |
| Frees the unmanaged resources being used with this UISprite. | |
| internal override void | Render () |
| Renders a rectangle. | |
Properties | |
| int | UnitCount [get, set] |
| Obtains and sets the number of rectangles to display. | |
| int | MaxUnitCount [get, set] |
| Obtains the maximum number of rectangles. | |
Renders multiple rectangles at the same time.
Class used most often to create UI
| UISprite | ( | int | maxUnitCount | ) |
Constructor.
| maxUnitCount | Maximum number of rectangles (1 to ) |
maxUnitCount is clamped to a value of 1 or more.
| UISpriteUnit GetUnit | ( | int | index | ) |
Obtains the rectangle.
| index | Index of rectangle to be obtained |
int UnitCount [get, set] |
Obtains and sets the number of rectangles to display.
| ArgumentOutOfRangeException | A negative value or a value greater than MaxUnitount is set. |