Name
MOAI.UserData -- set/get user data of object
Function
Store any kind of value in an object using this attribute. You can get this value later directly from the object. This is a good mechanism to avoid having to use global variables.

The user data you specify here will also be passed to your event handler callback that you have installed using InstallEventHandler(). The event handler callback will receive the user data specified in MOAI.UserData in the MOAIUserData field of the event message. See Notifications for details.

Type
Any

Applicability
ISG


Show TOC