diff --git a/spine-ts/spine-webgl/example/webcomponent-tutorial.html b/spine-ts/spine-webgl/example/webcomponent-tutorial.html index 68c5efc52..b83d6ec7c 100644 --- a/spine-ts/spine-webgl/example/webcomponent-tutorial.html +++ b/spine-ts/spine-webgl/example/webcomponent-tutorial.html @@ -978,101 +978,6 @@ ///////////////////// --> - - -
- -
-
- - -
-
-
-
-
- - - -
-

-                
-            
-
- -
- - - - - - - +
+ +
+ If you remove a widget from the DOM, it won't be disposed because you might want to append to another node. + If you want to actually dispose a widget, invoke dispose() on it. + Dispose is safe an won't dispose resources if used by other widgets. + +
+ If you want to dispose everything, invoke dispose() on the overlay. + +

+ The following example allows to create and dispose widgets using the same assets. + Below you can view the number of references to the same assets. + You'll se a red message when an asset is actually disposed. + If you see a number of references to the skeleton higher than expected, it's because other widgets in the page are using it. +

+

+ + +

+ Widgets: ? +
+ Skeleton references: ? +
+ Atlas references: ? DISPOSED +
+ Texture references: ? DISPOSED +
+ +
+
+
+ + + +
+

+                
+            
+
+ +
+ + + + +