Jump to content

Controller loaded event


1128

Recommended Posts

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) 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...