Is there a way to get a sprite frame which exists in assets to script

I want an easy way to reach all my sprite frames in script with out linking them one by one via properties is there a way to do this?

I can ask engineering. What version of Creator are you using?

i am using 2.3.4

You can refer to : https://docs.cocos.com/creator/2.3/manual/en/scripting/load-assets.html#load-spriteframe

Thank you I will try this

i didnt understand what is supposed to fill “test assets/image” place i tried to insert the spriteFrame’s

path

from the assets but either im not getting the correct path or something else is supposed to go in its

place…

are you familiar with how this works?

for some reason I confused the resources file in the internal package with the one from the assets file :sweat_smile:
Thank you so much you have been a huge help :smiley:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.