Jump to content

Controller loaded event


1128

Recommended Posts

Posted

i have simple script attached to a gameobject, the function "controllerLoadedHandler" is not at all invoking 

void OnEnable()
{
#if UNITY_EDITOR
WaveVR_ControllerLoader.onControllerModelLoaded += controllerLoadedHandler;
#endif
}

void OnDisable()
{
#if UNITY_EDITOR
WaveVR_ControllerLoader.onControllerModelLoaded -= controllerLoadedHandler;
#endif
}

void controllerLoadedHandler(GameObject go)
{
Debug.Log("---------------------------controllerLoadedHandler : " + go.name);
}

(  tag added by moderator) 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...