Setting flexible beam

Highlighted
1128
Explorer

Setting flexible beam

hi there, i have  a problem with "RaycastMode"  which is set to "Beam" but when i move far from UI object i m not able to click on the UI Buttons, here is my script.

 

void Start()
{
controller_right = GetComponent<WaveVR_ControllerLoader>();
if (EventSystem.current != null && EventSystem.current.GetComponent<WaveVR_ControllerInputModule>() != null)
EventSystem.current.GetComponent<WaveVR_ControllerInputModule>().RaycastMode = ERaycastMode.Beam;
}

( @Tony PH Lin - tag added by moderator)