You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a helper named Sheet with code below. What it does is
Load multiple sprite-sheets generated by TexturePacker
Renders those sprite-sheets to RenderTexture, so they are available instantly
Uses that renderTexture to create new SpriteSheet
Stores all sprite textures for reference latter
I can then use this helper to
Load all textures await Sheet.loadCharacters()
Access specific texture Sheet.t['characterOne.png']
All of this works, but I'm not 100% confident that what I am doing is correct, hence this discussion. I want to verify with someone that code below is "sound" and is not causing any issues I might not be aware of.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've got a helper named
Sheet
with code below. What it does isRenderTexture
, so they are available instantlySpriteSheet
I can then use this helper to
await Sheet.loadCharacters()
Sheet.t['characterOne.png']
All of this works, but I'm not 100% confident that what I am doing is correct, hence this discussion. I want to verify with someone that code below is "sound" and is not causing any issues I might not be aware of.
Beta Was this translation helpful? Give feedback.
All reactions