Detect when object has been set SetActiveRecursively to true


I need the movie to play when the plane with the movietexture object is set to SetActiveRecursively to true.

How can I detect this please?


var active = true;

//when you set the activeness
function SetActive ()
active = false;

//Then when you want to check
if (!active)

You can’t; SetActiveRecursively is not a property, it’s an action. I’d suggest making a function for playing the movie, and calling the function when you use SetActiveRecursively.