Skip to content

Commit

Permalink
Added danger note about disposing shared textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlamkins committed Feb 28, 2024
1 parent 227efec commit ee9cda5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/modules/guides/textures.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ Blish HUD maintains a metadata file that keeps track of all the textures on the

Developers should keep a reference to the `AsyncTexture2D` until they no longer need the texture. Once Blish HUD determines that there are no more references to the texture, it will be released from memory until it is requested again.

:::danger

Do not dispose of textures received from the DatAssetCache. These textures are shared between modules and with core. Blish HUD itself manages the lifecycle of these textures.

:::

### Using the DatAssetCache

You can use the DatAssetCache one of 4 ways:
Expand Down

0 comments on commit ee9cda5

Please sign in to comment.