Sends information to the input manager to process as a raycast to see if it interacts with the radial menu.
using UnityEngine;
public class RadialMenuExample : MonoBehaviour
{
public UltimateRadialMenu radialMenu;
public Transform fingerTip, fingerBase;
private void Update ()
{
// If any of the components are unassigned, warn the user and return.
if( radialMenu == null || fingerTip == null || fingerBase == null )
{
Debug.LogError( "One or more property is unassigned. Returning to avoid errors." );
return;
}
// Send in the finger tip and base positions to be calculated on the menu.
radialMenu.inputManager.SendRaycastInput( fingerTip.position, fingerBase.position );
}
}