playMaker

Author Topic: Resource Load not working  (Read 1866 times)

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Resource Load not working
« on: November 16, 2016, 11:24:13 AM »
Hi there

Does action resource load automatically loads from "Resources" folder?

my action setup

Asset path: food
type: object
object type: UnityEngine.Sprite

my sprite is called food.  Is it food or food.jpg?

with the current setup it doesn't load anything, it just says as "none". Any ideas please?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Resource Load not working
« Reply #1 on: November 17, 2016, 03:13:54 AM »
Hi,

ah yes, this is an issue I meant to solve, odd I am sure I did address this at one point...

 you have to fill the FsmObject variable with a sprite, otherwise it can't find the type you expect.

 so in the variable tab, select your FsmObject of type Sprite, and fill it with a defauls sprite, then the action will work and will understand what resource you want to load.

I'll search my md for the updated action, I am sure I addressed this...

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Resource Load not working
« Reply #2 on: November 17, 2016, 03:55:39 AM »
Hi,

 Ok, I have fixed it, and pushed to the Ecosystem.

 can you update that action from the Ecosystem and check if it works? thanks :) you should not have to do anything special now.

Bye,

 Jean

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Resource Load not working [SOLVED]
« Reply #3 on: November 17, 2016, 09:21:19 AM »
It works like a charm now.. Thanks :)