Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 4arrancho on November 20, 2019, 09:02:09 PM

Title: Load sprite from string
Post by: 4arrancho on November 20, 2019, 09:02:09 PM
Hi

How can i load a sprite from a string?

I have the sprites in the images folder
1.jpg, 2.jpg, etc

I want to load them to some gameobjects (that already contain an empty image component) according to their names/id's

Thanks
Title: Re: Load sprite from string
Post by: jeanfabre on November 21, 2019, 02:53:22 AM
Hi,

 you need to store your sprites in a Resources folder and load them using the action ResourcesLoad from the ecosystem

Bye,

 Jean