Property | Type | Description | |
---|---|---|---|
_atlas | UIAtlas, | ||
_id | int | ||
_sprite | UISprite, |
Property | Type | Description | |
---|---|---|---|
_currentSpriteName | string | ||
_idCounter | int |
Method | Description | |
---|---|---|
Create ( Transform parentTransform, Vector3 localPosition, string spriteName, Object prefab ) : DisplayedElement, | ||
Redraw ( Vector3 newLocalPosition ) : void | ||
Remove ( ) : void | ||
getID ( ) : int |
Method | Description | |
---|---|---|
OnPress ( bool isPressed ) : void | ||
setSprite ( string spriteName ) : void |
public static Create ( Transform parentTransform, Vector3 localPosition, string spriteName, Object prefab ) : DisplayedElement, | ||
parentTransform | Transform | |
localPosition | Vector3 | |
spriteName | string | |
prefab | Object | |
return | DisplayedElement, |
public Redraw ( Vector3 newLocalPosition ) : void | ||
newLocalPosition | Vector3 | |
return | void |
protected setSprite ( string spriteName ) : void | ||
spriteName | string | |
return | void |