The namespace containing functions to load and manage assets
- Source:
Namespaces
Methods
(static) destroy(obj)
Remove an assets object from the scene
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
object
|
The scene object to destroy and remove from the scene. |
(static) pivot_get_x(obj)
Return the pivot of the object passed as argument on the X axis.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
object
|
The scene object. |
(static) pivot_get_y(obj)
Return the pivot of the object passed as argument on the Y axis.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
object
|
The scene object. |
(static) pivot_set(obj, pivot_x, pivot_y)
Set a new value for the pivot of the object passed as argument.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
object
|
The scene object. |
pivot_x |
number
|
The pivot X position **in percentage** from 0 to 1. |
pivot_y |
number
|
The pivot Y position **in percentage** from 0 to 1. |