playMaker

Author Topic: UI Image Set Sprite Preloaded?  (Read 1349 times)

Alatriste

  • Full Member
  • ***
  • Posts: 194
UI Image Set Sprite Preloaded?
« on: January 04, 2019, 06:42:56 AM »
Hi,

Quick question:

When I assign through an FSM an action "UI Image Set Sprite", is the image assigned preloaded in the scene before is call? I have a bunch of big images and this could cause some extra loading time if it's not called "on demand". (meaning when the action runs)

Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: UI Image Set Sprite Preloaded?
« Reply #1 on: January 05, 2019, 04:45:57 AM »
Hi.
You can place your images in a resource folder and use resource load, if you are having issues.

But did you do some testing with it?

Alatriste

  • Full Member
  • ***
  • Posts: 194
Re: UI Image Set Sprite Preloaded?
« Reply #2 on: January 05, 2019, 10:56:22 AM »
Hi,

My question is more related with the following scenario:

I have a "UI Image Set Sprite" action in an FSM in the scene. Depending on the events, a different image (not from the resource folder but from the project asset folder) is assigned to that sprite. The images are already in the FSM, but depending of the Event that is triggered they will be set or not.

My question is about those images that may won't be triggered. Are they been preloaded just because they are included in an FSM? (even if they never show up)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: UI Image Set Sprite Preloaded?
« Reply #3 on: January 06, 2019, 09:24:16 AM »
Hi,
I believe they will only be loaded in memory when triggered.