We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf65d6b commit 5022830Copy full SHA for 5022830
1 file changed
src/gameobjects/rope/Rope.js
@@ -901,6 +901,26 @@ var Rope = new Class({
901
return this;
902
},
903
904
+ /**
905
+ * Handles the pre-destroy step for the Rope, which removes the Animation component and typed arrays.
906
+ *
907
+ * @method Phaser.GameObjects.Rope#preDestroy
908
+ * @private
909
+ * @since 3.23.0
910
+ */
911
+ preDestroy: function ()
912
+ {
913
+ this.anims.destroy();
914
+
915
+ this.anims = undefined;
916
917
+ this.points = null;
918
+ this.vertices = null;
919
+ this.uv = null;
920
+ this.colors = null;
921
+ this.alphas = null;
922
+ },
923
924
/**
925
* The horizontally flipped state of the Game Object.
926
*
0 commit comments