checkAll(key, value, checkAlive, checkVisible, force)
Quickly check that the same property across all children of this group is equal to the given value.
This call doesn't descend down children, so if you have a Group inside of this group, the property will be checked on the group but not its children.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | The property, as a string, to be set. For example: 'body.velocity.x' | ||
value | any | The value that will be checked. | ||
checkAlive | boolean | <optional> | false | If set then only children with alive=true will be checked. This includes any Groups that are children. |
checkVisible | boolean | <optional> | false | If set then only children with visible=true will be checked. This includes any Groups that are children. |
force | boolean | <optional> | false | If |
- Source code: core/Group.js (Line 1353)
Please login to continue.