class MAGES::ComponentLibrary::ArrowGuide

Overview

Creates an arrow object, and points it at the target. If the user is not looking at the target, the arrow will point in the direction of the target. More…

class ArrowGuide: public MonoBehaviour
{
public:
    // enums

    enum State;

    // classes

    class Data;

    // properties

    UnityEvent<State, State> OnStateChanged;
    State CurrentState;

    // methods

    ArrowGuide Theme(Data data);
    void Refresh();
};

Detailed Documentation

Creates an arrow object, and points it at the target. If the user is not looking at the target, the arrow will point in the direction of the target.

Properties

UnityEvent<State, State> OnStateChanged

Gets the event that’s called when the state of the arrow changes.

State CurrentState

Gets the current state of the arrow.

Methods

ArrowGuide Theme(Data data)

Gets or sets the data for the arrow guide.

Parameters:

data

The data.

Returns:

Self.

void Refresh()

Refreshes the arrow.