This component serves as a display of values that is indicated by spawning and destroying objects.
Suggested use:
Indicate values of a Counter with objects instead of numbers! Most conventionally used for a lives or health indicator but can also be used for anything you are counting using the Counter component.
For best practice, create a Prefab with the Sprite that you want to use for the display object. Attach it as the display object for a Counter, and place it on the screen in a UI Canvas.
Examples found in: Project 9
| Components | |||
|---|---|---|---|
| Property | Type | Description | Default Value | Component Properties |
| Display Mode | LPK_ObjectDisplayMode | Display mode for the object display. Copy Sprite will copy all of the Sprite properties. Copy Sprite Properties will copy all properties of the sprite renderer EXCEPT sprite. | SPRITE |
| Display "object" | GameObject | What object or object properties to use for the display object. | None |
| Display Object Offset | Vector3 | Where to spawn the next object relative to the previous object. | 0,0,0 |
| Max Display Objects | Integer | Maximum amount of objects to show in the display. | 5 | Debug Properties |
| Print Debug Info | Boolean | Toggle console debug messages. | False |
| Label | String | Notes for the user about this component. This does nothing to the game or build. | None |