class Node
Node is the basic class for all scene objects (Mesh, Light Camera).
@constructor
| Name | Type | Description | |
|---|---|---|---|
| name | string | ||
| optional | scene | Nullable<Scene> |
| Name | Type | Description | |
|---|---|---|---|
| node | Node |
An event triggered when the mesh is disposed.
@type {BABYLON.Observable}
| Name | Type | Description | |
|---|---|---|---|
| behavior | Behavior<Node> |
| Name | Type | Description | |
|---|---|---|---|
| behavior | Behavior<Node> |
| Name | Type | Description | |
|---|---|---|---|
| name | string |
| Name | Type | Description | |
|---|---|---|---|
| optional | force | boolean |
| Name | Type | Description | |
|---|---|---|---|
| optional | updateCache | boolean |
| Name | Type | Description | |
|---|---|---|---|
| optional | update | boolean |
Is this node ready to be used/rendered
@return {boolean} is it ready
Is this node enabled.
If the node has a parent and is enabled, the parent will be inspected as well.
@return {boolean} whether this node (and its parent) is enabled.
@see setEnabled
Set the enabled state of this node.
@see isEnabled
| Name | Type | Description | |
|---|---|---|---|
| value | boolean |
Is this node a descendant of the given node.
The function will iterate up the hierarchy until the ancestor was found or no more parents defined.
@see parent
| Name | Type | Description | |
|---|---|---|---|
| ancestor | Node |
Will return all nodes that have this node as ascendant.
@return {BABYLON.Node[]} all children nodes of all types.
| Name | Type | Description | |||
|---|---|---|---|---|---|
| optional | directDescendantsOnly | boolean | |||
| optional | predicate | node | Node |
Get all child-meshes of this node.
| Name | Type | Description | |||
|---|---|---|---|---|---|
| optional | directDescendantsOnly | boolean | |||
| optional | predicate | node | Node |
Get all child-transformNodes of this node.
| Name | Type | Description | |||
|---|---|---|---|---|---|
| optional | directDescendantsOnly | boolean | |||
| optional | predicate | node | Node |
Get all direct children of this node.
| Name | Type | Description | |||
|---|---|---|---|---|---|
| optional | predicate | node | Node |
|
| Name | Type | Description | |
|---|---|---|---|
| name | string |
| Name | Type | Description | |
|---|---|---|---|
| name | string | ||
| from | number | ||
| to | number |
| Name | Type | Description | |
|---|---|---|---|
| name | string | ||
| optional | deleteFrames | boolean |
| Name | Type | Description | |
|---|---|---|---|
| name | string |
| Name | Type | Description | |
|---|---|---|---|
| name | string | ||
| optional | loop | boolean | |
| optional | speedRatio | number |
| Name | Type | Description | |
|---|---|---|---|
| optional | force | boolean |
| Name | Type | Description | |
|---|---|---|---|
| node | Node | ||
| parsedNode | any | ||
| scene | Scene |