Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/api/en/loaders/managers/LoadingManager.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ <h3>[method:LoadingManager addHandler]( [param:Object regex], [param:Loader load
Registers a loader with the given regular expression. Can be used to define what loader should be used in
order to load specific files. A typical use case is to overwrite the default loader for textures.
</p>
<code>
// add handler for TGA textures
manager.addHandler( /\.tga$/i, new TGALoader() );
</code>

<h3>[method:null getHandler]( [param:String file] )</h3>
<p>
Expand Down
4 changes: 4 additions & 0 deletions docs/api/zh/loaders/managers/LoadingManager.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ <h3>[method:LoadingManager addHandler]( [param:Object regex], [param:Loader load
Registers a loader with the given regular expression. Can be used to define what loader should be used in
order to load specific files. A typical use case is to overwrite the default loader for textures.
</p>
<code>
// add handler for TGA textures
manager.addHandler( /\.tga$/i, new TGALoader() );
</code>

<h3>[method:LoadingManager removeHandler]( [param:Object regex] )</h3>
<p>
Expand Down