You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Sets a property to the given value on the child. The operation parameter controls how the value is set.
669
+
* Operation 0 means set the existing value to the given value, or if force is `false` create a new property with the given value.
670
+
* 1 will add the given value to the value already present.
671
+
* 2 will subtract the given value from the value already present.
672
+
* 3 will multiply the value already present by the given value.
673
+
* 4 will divide the value already present by the given value.
636
674
*
637
675
* @method Phaser.Group#setProperty
638
676
* @param {*} child - The child to set the property value on.
639
677
* @param {array} key - An array of strings that make up the property that will be set.
640
678
* @param {*} value - The value that will be set.
641
679
* @param {number} [operation=0] - Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.
680
+
* @param {boolean} [force=false] - If `force` is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.
681
+
* @return {boolean} True if the property was set, false if not.
* @param {boolean} [checkAlive=false] - If set then the child will only be updated if alive=true.
701
752
* @param {boolean} [checkVisible=false] - If set then the child will only be updated if visible=true.
702
753
* @param {number} [operation=0] - Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.
754
+
* @param {boolean} [force=false] - If `force` is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.
755
+
* @return {boolean} True if the property was set, false if not.
* @param {boolean} [checkAlive=false] - If set then only children with alive=true will be updated. This includes any Groups that are children.
729
784
* @param {boolean} [checkVisible=false] - If set then only children with visible=true will be updated. This includes any Groups that are children.
730
785
* @param {number} [operation=0] - Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.
786
+
* @param {boolean} [force=false] - If `force` is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.
* @param {boolean} [checkAlive=false] - If set then only children with alive=true will be updated. This includes any Groups that are children.
763
819
* @param {boolean} [checkVisible=false] - If set then only children with visible=true will be updated. This includes any Groups that are children.
764
820
* @param {number} [operation=0] - Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.
821
+
* @param {boolean} [force=false] - If `force` is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.
0 commit comments