• Editor
  • I am trying to use many weapon images in the spine.

Spine is building a weapons replacement system.

But since there are so many types of weapons, I want to load only the textures of the weapons I use.

I wonder if changing the skin with multiple textures in "Spine" will only load the memory used for the current skin into memory.

Engine used: "Unity"

Thank you.

Related Discussions
...
  • Đã chỉnh sửa

In general, Unity will load the textures that are referenced directly or indirectly by the assets in your loaded scenes.
Lets say your skeleton references the SkeletonData asset, which references one or more Atlas assets, which references a material, which references a Texture.

Therefore you will need to prevent the general Unity loading cascade.
See these documentation pages:
https://docs.unity3d.com/Manual/LoadingResourcesatRuntime.html
Also related: the Async Upload Pipeline: https://blogs.unity3d.com/2018/10/08/optimizing-loading-performance-understanding-the-async-upload-pipeline/

One way to load textures (or other assets) dynamically later is via the Resources workflow.
You can see this forum thread here: How to dynamically load/unload Skeleton Data Assets