Detect when object has been set SetActiveRecursively to true

HI,

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?

Thanks!

var active = true;

//when you set the activeness
function SetActive ()
{
gameObject.SetActiveRecursively(true);
active = false;
}

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

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.