playMaker

Author Topic: Load sprite from string  (Read 1142 times)

4arrancho

  • Playmaker Newbie
  • *
  • Posts: 27
Load sprite from string
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load sprite from string
« Reply #1 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