Garrett Johnson 5 lat temu
rodzic
commit
a75349d60a
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      README.md

+ 8 - 0
README.md

@@ -278,6 +278,14 @@ onDisposeModel = null : ( scene : Object3D, tile : object ) => void
 
 Callback that is called every time a model is disposed of. This should be used in conjunction with [.onLoadModel](#onLoadModel) to dispose of any custom materials created for a tile. Note that the textures, materials, and geometries that a tile loaded in with are all automatically disposed of even if they have been removed from the tile meshes.
 
+### .dispose
+
+```js
+dispose() : void
+```
+
+Disposes of all the tiles in the renderer. Calls dispose on all materials, textures, and geometries that were loaded by the renderer and subsequently calls [onDisposeModel](#onDisposeModel) for any loaded tile model.
+
 ## DebugTilesRenderer
 
 _extends [TilesRenderer](#TilesRenderer)_