Vizard 7 » Command Index » Vizard modules » vizact » <vizact>.onupdate
7.3

<vizact>.onupdate

Calls func every frame at a time determaned by priority

<vizact>.onupdate(  
priority  
func  
*args  
)  
priority
The priority of the update function
func
The function to call on update
*args
Arguments to pass to function

Remarks

Priority of -5 happens before priority 0, which happens before priority 10.

Return Value

A vizact.EventFunction object with the following methods:

Method

Description

<event>.setEnabled(val)

Enable/Disable the event function. The associated function will not be called while the event function is disabled. viz.TOGGLE can be used to toggle the state. Event functions are initially enabled.

<event>.getEnabled()

Get the enabled state of the event function.

<event>.remove()

Permanently unregister the event function.

See also

<vizact>.ontimer
<vizact>.ontimer2