OnEnable Not Called in UI Canvas?

Hi,
I enable or disable my canvas by

myCanvas.enabled=true; //or false

I want to play / stop a movietexture in the canvas… So I added the movieTexture.play() and stop() in the OnEnable() and OnDisable() in a script attached to the canvas. But the script is never called. I even tried moving the script file to the children of the canvas (RawImage).

Any Pointers?

Thanks & Regards
Rajesh

Instead try myCanvas.gameObject.SetActive(true/false) This should call the OnEnable and OnDisable functions.