Class NavigationArrowUIPanel
UI implementation of NavigationArrowPanel that displays a navigation arrow using a UI Image component, updating its sprite based on the angle to the target waypoint.
public class NavigationArrowUIPanel : NavigationArrowPanel, IHandle<NavigationMessages.NavigationDirectionMessage>
Inheritance
Implements
IHandle<NavigationMessages.NavigationDirectionMessage>
Inherited Members
- NavigationArrowPanel.m_ChannelKey
- NavigationArrowPanel.Start()
- NavigationArrowPanel.OnDestroy()
- NavigationArrowPanel.Handle(NavigationMessages.NavigationDirectionMessage)
- NavigationArrowPanel.SelectSectorIndex<T>(NavigationArrowPanel.RadialSelectorItem<T>[], float)
Fields
debugAngleInDegrees
The most recently evaluated navigation angle, used by Unity Editor for debugging.
[NonSerialized]
public float debugAngleInDegrees
Field Value
float
Methods
Handle(NavigationDirectionMessage)
Handles incoming NavigationDirectionMessage events by processing the angle toward the target waypoint.
public override void Handle(NavigationMessages.NavigationDirectionMessage message)
Parameters
| Name | Type | Description |
|---|---|---|
message | NavigationMessages.NavigationDirectionMessage | The navigation direction message containing the angle in degrees between the actor's forward direction and the direction toward the target waypoint. |
Start()
Called when the panel is initialized. Subscribes this panel to the IEventAggregator for navigation direction messages.
Initializes the navigation arrow UI panel and disables the UI root by default.
protected override void Start()