Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Silicon Power on October 06, 2019, 04:02:23 PM

Title: Can I send game objects to Asset Bundles with a PlayMaker action? [SOLVED]
Post by: Silicon Power on October 06, 2019, 04:02:23 PM
Hi. Can I send game objects to Asset Bundles with a PlayMaker action?
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: jeanfabre 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
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Silicon Power 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.
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: jeanfabre 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
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Broken Stylus 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/
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Silicon Power 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.
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Broken Stylus on October 07, 2019, 12:58:18 PM
Unless what is written here (https://forum.unity.com/threads/create-an-assetbundle-from-assets-generated-during-runtime.477021/) has changed and now Unity does allow the live editing of asset bundles, I'm not sure what you want can even be achieved.
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: jeanfabre 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
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Silicon Power on October 08, 2019, 05:14:05 AM
Unless what is written here (https://forum.unity.com/threads/create-an-assetbundle-from-assets-generated-during-runtime.477021/) 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.
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Thore 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.
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Silicon Power 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.

(https://hutonggames.com/playmakerforum/index.php?action=dlattach;topic=21188.0;attach=14720;image)

It can change during Play Mode in the Unity editor so PlayMaker should be able to do this.
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: jeanfabre 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
Title: Re: Can I send game objects to Asset Bundles with a PlayMaker action?
Post by: Silicon Power 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 :)