- Home /
Question by
ninjaboynaru · Feb 11, 2016 at 12:46 AM ·
spriteassetsserializationsave datasaveload
Get Asset at runtime by its ID
I have a class that I can't serialize and save because it has a variable that is of type Sprite
. Thus, I made a wrapper class that instead stores the ID of the sprite asset.
I need to be able to find that sprite again at run-time by just its ID. Is there any way I can do this. I know I cant use AssetDatabase because that is for Editor-time.
Manny thanks good peoples
Comment
I need to get an asset not an active gameobject in the scene. But thanks anyways
Your answer
Follow this Question
Related Questions
saving array to bin file 0 Answers
How do i change my save "Total Coin" everytime i get more coins. 0 Answers
Deserializing data with XML Serializer 0 Answers