playMaker

Author Topic: WWW Asset Bundle how to instantiate it in the scene?  (Read 1522 times)

wuannetraam

  • Playmaker Newbie
  • *
  • Posts: 17
WWW Asset Bundle how to instantiate it in the scene?
« on: June 26, 2020, 06:55:08 AM »
I'm wondering what my next step should be. This is what I have done:

I've created an asset bundle via Asset Bundle Browser. I've uploaded the asset bundle to my server. Now I've created a new Empty GameObject and added the action "WWW Asset Bundle" which I downloaded from the Ecosystem. I've placed the url in there and then stored the object in a variable (Object). I checked the variable and the object is loaded correctly.

What is the next step that I need to do now? What action do I need to use to spawn the loaded asset in my scene?

Hope you can help me out....

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: WWW Asset Bundle how to instantiate it in the scene?
« Reply #1 on: July 01, 2020, 02:29:40 AM »
Hi,

I think tmeric has done the support for that:

https://hutonggames.com/playmakerforum/index.php?topic=20374.msg89357#msg89357


bye,

Jean

wuannetraam

  • Playmaker Newbie
  • *
  • Posts: 17
Re: WWW Asset Bundle how to instantiate it in the scene?
« Reply #2 on: July 02, 2020, 04:54:38 AM »
thank you very much! I didn't know about this package. It looks like the actions I need. However when I add the action "Load Asset Game Object". I get this error (see image). "Asset Bundle Unity Web Request" does work. I've added that action before the load asset game object. Anyone got an idea how to fix this? Or what is causing this?

"InvalidCastException: Specified cast is not valid"