Ryoshi78 yazdıAt the moment I exported the desired animations as png files and it seems to have improved the loading time. Though currently Spine exported 133 images as pngs and I only have 8 key frames. Is it possible to only export the key frames and let Unity handle the in betweens?
You should not export your skeletal animation as an image sequence for use in Unity, you cannot simply let Unity draw in-between frames. (At least not without any special machine-learning/AI driven painter-monkeys 😉 )
So please change export mode back to exporting data
, and then choose binary
, not json
.
Ryoshi78 yazdıYes I do, I have 4 materials using 4 different textures. 3 textures are 2048 x 2048 and one 2048 x 1024. The Skeleton data asset is handling 4 different character skins.
Could the multiple textures size be whats affecting the load time?
If you are now talking about exported png image sequence, please change to export to data
export as mentioned above.
Different texture sizes don't matter. What matters is the number of material changes and draw calls that are necessary, please see this documentation page entry for a detailled explanation:
spine-unity Runtime Documentation: Materials
Ryoshi78 yazdıLastly, the material section appears to be flickering
This is also explained in the above Materials section of the documentation pages.
Ryoshi78 yazdı
Sorry this is the first project I'm using Spine in so I was unsure of a few things
Please have a look at the documentation pages then, it covers many important aspects:
spine-unity Runtime Documentation: Getting Started
If your problems still persist after exporting the project as binary, please show us some screenshots showing your project's bone structure, perhaps something can be simplified there.
Also general optimization rules apply, you should in general not instantiate GameObjects in the middle of gameplay, but instead pre-load as much as possible at level-start (or whenever more suitable) and/or keep a pool of objects. Loading a skeleton for the first time will lead to loading the data from the binary/json file. The first instance counts here, subsequent instances don't load skeleton data again.