playMaker

Author Topic: Can I send game objects to Asset Bundles with a PlayMaker action? [SOLVED]  (Read 2674 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Hi. Can I send game objects to Asset Bundles with a PlayMaker action?
« Last Edit: October 10, 2019, 02:39:48 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #1 on: October 07, 2019, 02:46:48 AM »
Hi,

no, Asset bundles are created and managed during editing exclusivly, not during playback within the game runtime logic.

you can however load asset bundles and then use them with playmaker.

Bye,

 Jean

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #2 on: October 07, 2019, 03:24:35 AM »
Hi,

no, Asset bundles are created and managed during editing exclusivly, not during playback within the game runtime logic.

you can however load asset bundles and then use them with playmaker.

Bye,

 Jean

But I can add content to asset bundle in Playmode and when I stop the game all contents are still there. So why shouldn't we send items there using playmaker when it will remain persist? That can be very useful.

I get a GameObject from Resources folder using Resource Load action of PlayMaker and now I need to send it inside an asset bundle. By this it gonna be an automate process.
« Last Edit: October 07, 2019, 03:29:20 AM by Silicon Power »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #3 on: October 07, 2019, 09:18:11 AM »
Hi,

 What is your workflow? can you explain your use case as to why you want to do that at runtime?

Bye,

 Jean

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #4 on: October 07, 2019, 09:48:08 AM »
In Playmode inside Unity. This is still editing.
It's like an extra package for an app, often used as DLC.
Besides, logically, any package would also need to be verified by the platform holders you publish on.

See 1st post on this old thread:
https://forum.unity.com/threads/ios-and-asset-bundles.131865/

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #5 on: October 07, 2019, 12:19:15 PM »

In Playmode inside Unity. This is still editing.
It's like an extra package for an app, often used as DLC.
Besides, logically, any package would also need to be verified by the platform holders you publish on.

See 1st post on this old thread:
https://forum.unity.com/threads/ios-and-asset-bundles.131865/


Hi. I explained above why I need to send items inside asset bundle with playmaker.
« Last Edit: November 14, 2019, 10:09:50 AM by Silicon Power »

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #6 on: October 07, 2019, 12:58:18 PM »
Unless what is written here has changed and now Unity does allow the live editing of asset bundles, I'm not sure what you want can even be achieved.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #7 on: October 08, 2019, 02:46:20 AM »
Hi,

 You won't be able to pack at runtime without Unity Editor, if you build an app, the asset bundle creation api will not be there.

the only ways) would be to find a format that Unity can load at runtime and then store all your models on a server with this format and provide, or find an asset that provide runtime importations.

https://assetstore.unity.com/packages/tools/modeling/trilib-model-loader-package-91777


https://github.com/KhronosGroup/UnityGLTF

 Bye,

 Jean

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #8 on: October 08, 2019, 05:14:05 AM »
Unless what is written here has changed and now Unity does allow the live editing of asset bundles, I'm not sure what you want can even be achieved.
Hi,

 You won't be able to pack at runtime without Unity Editor, if you build an app, the asset bundle creation api will not be there.

the only ways) would be to find a format that Unity can load at runtime and then store all your models on a server with this format and provide, or find an asset that provide runtime importations.

https://assetstore.unity.com/packages/tools/modeling/trilib-model-loader-package-91777


https://github.com/KhronosGroup/UnityGLTF

 Bye,

 Jean

I really don't want to do this in the runtime. I want to do this inside Unity Editor. just expect doing this manually I need an action to set a game object as an asset bundle item.
« Last Edit: October 08, 2019, 08:50:16 AM by Silicon Power »

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #9 on: October 08, 2019, 12:11:38 PM »
I really don't want to do this in the runtime. I want to do this inside Unity Editor. just expect doing this manually I need an action to set a game object as an asset bundle item.

Not sure I understand this correctly, but Playmaker runs only when the game runs, i.e. runtime. There are no editor tools based on FSM.

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #10 on: October 08, 2019, 02:25:02 PM »
I really don't want to do this in the runtime. I want to do this inside Unity Editor. just expect doing this manually I need an action to set a game object as an asset bundle item.

Not sure I understand this correctly, but Playmaker runs only when the game runs, i.e. runtime. There are no editor tools based on FSM.

All I need is to change this section with PlayMaker.



It can change during Play Mode in the Unity editor so PlayMaker should be able to do this.
« Last Edit: October 08, 2019, 02:29:44 PM by Silicon Power »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #11 on: October 09, 2019, 02:22:59 AM »
Hi,

 I made an action for this,  it's called "SetBundleAssetName" and it's on the ecosystem

let me know how it goes.

Bye,

 Jean

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: Can I send game objects to Asset Bundles with a PlayMaker action?
« Reply #12 on: October 09, 2019, 06:22:08 AM »
Hi,

 I made an action for this,  it's called "SetBundleAssetName" and it's on the ecosystem

let me know how it goes.

Bye,

 Jean

Absolutely wonderful. Thank you :)