Shape:setUserData
EditAssociates a Lua value with the Shape.
Shape:setUserData(data)
Arguments
Name | Type | Description |
data | * | The custom value to associate with the Shape. |
Returns
Nothing
Notes
Set the user data to nil
to clear any existing reference.
The user data is not shared between threads. Each thread has its own user data for the Shape.