From ee9cda59b1e38e3e1055fb5df28e6bbb78cffb75 Mon Sep 17 00:00:00 2001 From: Xander Lamkins Date: Tue, 27 Feb 2024 22:14:13 -0500 Subject: [PATCH] Added danger note about disposing shared textures. --- docs/modules/guides/textures.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/modules/guides/textures.md b/docs/modules/guides/textures.md index 36598430..3e9377bd 100644 --- a/docs/modules/guides/textures.md +++ b/docs/modules/guides/textures.md @@ -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: