Novelty scripting reference > Scripted events > OnShow

OnShow

This event is called during an object's appearance transition.

Hint: By setting the time property of a Change visibility action (Show), 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 FadeIn.OnShow
{
	// Fade in object 
	sender.opacity = progress;
}

Back to top