Novelty scripting reference > Scripted events > OnHide

OnHide

This event is called during an object's disappearance.

Hint: By setting the time property of a Change visibility action (Hide), this event will be called for that amount of time when that action is triggered.


Implicit arguments

Object@ sender
Handle to the associated object.

float progress
Progress percentage (0.0f to 1.0f)
The event is guaranteed to recieve the exact values of 0.0f at the beginning and 1.0f at the end.


Sample

event FadeOut.OnHide
{
	// Fade out object 
	sender.opacity = invert(progress);
}

Back to top