Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Duffer on October 17, 2015, 03:03:07 AM

Title: Playmaker using string(s) of path to Resource or path to Prefab/Asset
Post by: Duffer on October 17, 2015, 03:03:07 AM
Hi,

Help!

Let's suppose I have used SimpleSQL to create an Item database for an RPG.

I have a couple of string columns in my SQLite database which contain either the paths to (a) Resources, (b) Prefabs, (c) Assets. These string columns are also then reflected in an ORM public class containing string variables.

My question is, with (a), then (b), then (c), how do I go about bringing in or instantiating the actual Resource (Texture2D, Audioclip, Model etc), Prefab and then other Asset using Playmaker actions?

Any help gratefully received.  Better yet, some sample c# script... 8)
Title: Re: Playmaker using string(s) of path to Resource or path to Prefab/Asset
Post by: Duffer on October 17, 2015, 06:39:40 PM
Anyone?
Title: Re: Playmaker using string(s) of path to Resource or path to Prefab/Asset
Post by: Lane on October 18, 2015, 11:38:13 AM
There is a Resources Load action, i believe its on Ecosystem.
Title: Re: Playmaker using string(s) of path to Resource or path to Prefab/Asset
Post by: Duffer on October 18, 2015, 01:02:07 PM
Excellent.   Thanks Lane.  Hopefully this will work with Prefabs too.  God how I wish Playmaker had full support for Lists too, at least on Ecosystem. ..