playMaker

Author Topic: Playmaker using string(s) of path to Resource or path to Prefab/Asset  (Read 1827 times)

Duffer

  • Playmaker Newbie
  • *
  • Posts: 26
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)

Duffer

  • Playmaker Newbie
  • *
  • Posts: 26
Re: Playmaker using string(s) of path to Resource or path to Prefab/Asset
« Reply #1 on: October 17, 2015, 06:39:40 PM »
Anyone?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Playmaker using string(s) of path to Resource or path to Prefab/Asset
« Reply #2 on: October 18, 2015, 11:38:13 AM »
There is a Resources Load action, i believe its on Ecosystem.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Duffer

  • Playmaker Newbie
  • *
  • Posts: 26
Re: Playmaker using string(s) of path to Resource or path to Prefab/Asset
« Reply #3 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. ..