engine icon indicating copy to clipboard operation
engine copied to clipboard

Inactive sprite forces sprite atlas to load even when set to not Preload

Open fisk87 opened this issue 5 years ago • 3 comments

Description

Sprite objects force their corresponding texture atlas to load even if the sprite object is disabled in the scene and Preload is unchecked

Steps to Reproduce

  1. Import texture > create texture atlas > create sprite
  2. Un-check "Preload" on the sprite and the texture atlas
  3. Drag sprite into a scene, and disable the sprite object in the scene
  4. Run or publish the scene, the texture atlas will be loaded (look at the browser's dev tools)

fisk87 avatar Oct 07 '20 15:10 fisk87

If asset is set to "preload" it will load regardless of being used. Try setting both sprite and atlas to preload false.

Maksims avatar Oct 07 '20 16:10 Maksims

The sprite texture loads even when set to not preload. Sorry I missed to include this when I posted. I've updated the description

fisk87 avatar Oct 07 '20 16:10 fisk87

This is happening to me too, when i have my entire entity hierarchy disabled, and my images preload = false, they still download. With or without BASIS compression, i have tried both ways

Screenshot 2024-02-26 at 9 10 49 AM Screenshot 2024-02-26 at 9 09 44 AM

game-fuse avatar Feb 26 '24 14:02 game-fuse