Class DisplayRegionNameAction
ECA action that displays the region name as a 2D label when a character enters a region. Client-only: suppressed on server and during prediction reconciliation.
[Serializable]
public class DisplayRegionNameAction : BaseAction, IAction
- Inheritance
-
DisplayRegionNameAction
- Implements
- Inherited Members
Fields
DisplayColor
The color of the displayed text.
public Color DisplayColor
Field Value
- Color
FadeColor
Whether the label color fades over its lifetime.
public bool FadeColor
Field Value
Font
The font used for the displayed text.
public Font Font
Field Value
- Font
FontSize
The font size of the displayed text.
public int FontSize
Field Value
IncreaseY
Whether the label position increases on the Y-axis over its lifetime.
public bool IncreaseY
Field Value
LifeTime
How long the label is displayed in seconds.
public float LifeTime
Field Value
Style
The font style of the displayed text.
public FontStyle Style
Field Value
- FontStyle
Methods
Execute(ICharacter, EventData)
Executes the action. Must be implemented by derived classes.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action.
eventDataEventDataEvent data for the action.
Events
OnDisplay2DLabel
Raised on the client when a region name label should be displayed.
public static event Action<string, FontStyle, Font, int, Color, float, bool, bool, Vector2> OnDisplay2DLabel