![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
This UI element is shown when a character stands over an item and the pick up button is not equal to -1 (i.e. auto pick-up is off). More...
Public Member Functions | |
void | Init (ItemManager itemManager) |
virtual void | Show (Item item) |
virtual void | Hide (Item item) |
![]() | |
virtual void | Validate (PlatformerProMonoBehaviour myTarget) |
Override this method if you want to provide custom validation. The actual code should be surrounded by the if UNITY_EDITOR / endif directive. More... | |
Public Attributes | |
GameObject | visibleContent |
Root element holding the visible content More... | |
Image | itemImage |
Image to show the item type. Can be null. More... | |
Text | itemName |
Text to show item name. Can be null. More... | |
Text | itemCount |
Text to show item count. Can be null. More... | |
bool | showInWorldSpace |
If true the box with be shown at transform of relevant item. You can use the visible content position relative to parent to offset. More... | |
Camera | uiCamera |
Camera to use for world space positioning. Will be searched for if null. More... | |
Protected Attributes | |
ItemManager | itemManager |
List< Item > | activeItems |
Canvas | canvas |
Item | currentItem |
The item being shown. More... | |
Properties | |
override string | Header [get] |
![]() | |
virtual string | Header [get] |
Gets the header string used to describe the component. More... | |
virtual string | DocLink [get] |
Gets a link to documentation site. More... | |
virtual string | VideoLink [get] |
Gets a link to a youtube video. More... | |
virtual string | Deprecated [get] |
If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More... | |
This UI element is shown when a character stands over an item and the pick up button is not equal to -1 (i.e. auto pick-up is off).
|
virtual |
void PlatformerPro.ItemPickupBox.Init | ( | ItemManager | itemManager | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
The item being shown.
Text PlatformerPro.ItemPickupBox.itemCount |
Text to show item count. Can be null.
Image PlatformerPro.ItemPickupBox.itemImage |
Image to show the item type. Can be null.
|
protected |
Text PlatformerPro.ItemPickupBox.itemName |
Text to show item name. Can be null.
bool PlatformerPro.ItemPickupBox.showInWorldSpace |
If true the box with be shown at transform of relevant item. You can use the visible content position relative to parent to offset.
Camera PlatformerPro.ItemPickupBox.uiCamera |
Camera to use for world space positioning. Will be searched for if null.
GameObject PlatformerPro.ItemPickupBox.visibleContent |
Root element holding the visible content
|
get |