Question by
SilverLifeee · Sep 21, 2021 at 11:05 AM ·
spritespritesdataresources.load
What is the best way to load Sprites dynamically?
I have tracks flying around in my scene. Every track contains data, which is preprocessed in a different thread. In this data-property I want to add the right sprite within my data-thread. The process of changing the sprite of each tracks data can happen often and worst case every 30ms. How to load the right sprites most optimized in the non-unity data thread. Is it recommended to always load the corresponding frame from asset-folder or rather add all sprites to a sprite array and select the right sprites from there?
Comment