GridComponent2D
Summary
2D Background grid.
Constructor
GridComponent2D
Syntax
GridComponent2D
(
-
core
Summary
Parameters:
-
core
CoreWanaplan Core.
Item Index
Methods
Methods
destroy
Syntax
destroy
()
Summary
Method called when the component is destroyeddisable
Syntax
disable
()
Summary
Disables the componentenable
Syntax
enable
()
Summary
Enables the componentenableScrolling
Syntax
enableScrolling
(
-
enable
Summary
Enables scrolling on the grid
Parameters:
-
enable
Boolean"Enabled" flag.
getTargeted
Syntax
Summary
Finds out if the given position is over an element handled by the componentParameters:
-
vector
VectorA position, usually the cursor's one.
Returns:
Object:
The targeted element, or null if nothing is found.
initialize
Syntax
initialize
()
Summary
Method called when Wanaplan is initialized. You don't need to call this method manually.onContextChanged
Syntax
onContextChanged
(
-
context
Summary
Method called when the context is switched (2D -> 3D or 3D -> 2D)Parameters:
-
context
StringThe new context