Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: elusiven on November 16, 2016, 11:24:13 AM

Title: Resource Load not working
Post by: elusiven 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?
Title: Re: Resource Load not working
Post by: jeanfabre 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
Title: Re: Resource Load not working
Post by: jeanfabre 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
Title: Re: Resource Load not working [SOLVED]
Post by: elusiven on November 17, 2016, 09:21:19 AM
It works like a charm now.. Thanks :)