Class SerenityStatusPanel
Inheritance
SerenityStatusPanel
Assembly: Serenity.UnityUi.Infrastructure.dll
public sealed class SerenityStatusPanel
Properties
Declaration
public GameObject GameObject { get; }
Property Value
| Type |
Description |
| GameObject |
|
Methods
Create(SerenityUiContext, Transform, string, string, string, string, string, float)
Builds a status panel under parent. hpLabel/btcLabel/
limitLabel are the gauge captions; pass null for btc/limit to omit those gauges.
Declaration
public static SerenityStatusPanel Create(SerenityUiContext ctx, Transform parent, string id, string displayName, string hpLabel, string btcLabel, string limitLabel, float preferredWidth = 280)
Parameters
Returns
Declaration
public void SetActive(bool on)
Parameters
| Type |
Name |
Description |
| bool |
on |
|
Declaration
public void SetBtc(float value01)
Parameters
| Type |
Name |
Description |
| float |
value01 |
|
Fades the whole panel (e.g. when the entity is defeated).
Declaration
public void SetDimmed(bool dimmed)
Parameters
| Type |
Name |
Description |
| bool |
dimmed |
|
Highlights the panel background (used while it is the selected target).
Declaration
public void SetHighlighted(bool on)
Parameters
| Type |
Name |
Description |
| bool |
on |
|
Declaration
public void SetHp(float value01)
Parameters
| Type |
Name |
Description |
| float |
value01 |
|
Declaration
public void SetLimit(float value01)
Parameters
| Type |
Name |
Description |
| float |
value01 |
|
Tints the name to signal the limit/finisher is ready (or back to normal).
Declaration
public void SetLimitReady(bool ready)
Parameters
| Type |
Name |
Description |
| bool |
ready |
|
Declaration
public void SetName(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|