Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

Controller loaded event


1128
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...