소스 검색

README update

Garrett Johnson 5 년 전
부모
커밋
a75349d60a
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  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)_