1681-engine / index / clearSilhouettes
Function: clearSilhouettes() ​
ts
function clearSilhouettes(texture?): void;Defined in: src/core/silhouette.ts:75
Frees cached silhouettes: those of one texture (it is about to be repainted or destroyed), or all of them (a scene or atlas change). A sprite still wearing one must be given another texture first.
Parameters ​
| Parameter | Type |
|---|---|
texture? | Texture<TextureSource<any>> |
Returns ​
void