My Project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | Events | List of all members
UltimateRadialMenu.UltimateRadialButton Class Reference

Public Member Functions

bool IsInAngle (float angle)
 Returns true if the angle is within the range of this button.
 
void OnEnter ()
 Invokes the functionality for when the input enters the button.
 
void OnExit ()
 Invokes the functionality for when the input exits the button.
 
void OnInteract ()
 Invokes the functionality for when the input interacts with the button.
 
void OnSelect ()
 Invokes the functionality for when this button is selected.
 
void OnDeselect ()
 Invokes the functionality for when this button is not selected anymore.
 
void DisableButton ()
 Invokes the functionality for when button is disabled.
 
void EnableButton ()
 Invokes the functionality for when button is enabled.
 
void OnInputDown ()
 Invokes the functionality for when the input is down on the button.
 
void OnInputUp ()
 Invokes the functionality for when the input is release on the button.
 
void AddCallback (Action ButtonCallback)
 Subscribes the provided function to the radial button interaction event.
 
void AddCallback (Action< int > ButtonCallback)
 Subscribes the provided function to the radial button interaction event.
 
void AddCallback (Action< string > ButtonCallback)
 Subscribes the provided function to the radial button interaction event.
 
void RegisterButtonInfo (UltimateRadialButtonInfo buttonInfo)
 [Internal] Registers the information to the quickbar button.
 
void ClearButtonInformation ()
 Clears the button information.
 
void ResetRadialButtonInformation ()
 

Public Attributes

Vector3 finalOffset
 
UltimateRadialMenu radialMenu
 
RectTransform buttonTransform
 
Image radialImage
 
bool buttonDisabled = false
 
string name
 
string description
 
int buttonIndex = -1
 
float minAngle
 
float maxAngle
 
float angle
 
RectTransform iconTransform
 
Image icon
 
bool useIconUnique = false
 
float iconSize = 0.0f
 
float iconHorizontalPosition = 0.0f
 
float iconVerticalPosition = 0.0f
 
float iconRotation = 0.0f
 
bool invertScaleY = false
 
Vector3 iconNormalScale
 
Text text
 
Vector3 normalPosition
 
Vector3 highlightedPosition
 
Vector3 pressedPosition
 
Vector3 selectedPosition
 
Vector3 disabledPosition
 
string key
 
int id
 
UnityEvent unityEvent
 

Properties

bool Registered [get]
 Returns the state of having information registered to this button.
 
bool Selected [get]
 Returns the current state of being selected.
 

Events

Action OnRadialButtonInteract
 
Action< int > OnRadialButtonInteractWithId
 
Action< string > OnRadialButtonInteractWithKey
 
Action OnClearButtonInformation
 

Member Function Documentation

◆ AddCallback() [1/3]

void UltimateRadialMenu.UltimateRadialButton.AddCallback ( Action  ButtonCallback)
inline

Subscribes the provided function to the radial button interaction event.

Parameters
ButtonCallbackThe action callback to call when this new button is being interacted with.

◆ AddCallback() [2/3]

void UltimateRadialMenu.UltimateRadialButton.AddCallback ( Action< int >  ButtonCallback)
inline

Subscribes the provided function to the radial button interaction event.

Parameters
ButtonCallbackThe action callback to call when this new button is being interacted with.

◆ AddCallback() [3/3]

void UltimateRadialMenu.UltimateRadialButton.AddCallback ( Action< string >  ButtonCallback)
inline

Subscribes the provided function to the radial button interaction event.

Parameters
ButtonCallbackThe action callback to call when this new button is being interacted with.

◆ IsInAngle()

bool UltimateRadialMenu.UltimateRadialButton.IsInAngle ( float  angle)
inline

Returns true if the angle is within the range of this button.

Parameters
angleThe current input angle.

◆ RegisterButtonInfo()

void UltimateRadialMenu.UltimateRadialButton.RegisterButtonInfo ( UltimateRadialButtonInfo  buttonInfo)
inline

[Internal] Registers the information to the quickbar button.

Parameters
ButtonCallbackThe Callback function to call when interacted with.
buttonInfoThe information to apply to the button.

The documentation for this class was generated from the following file: