Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gav (HeyBud) on March 16, 2018, 05:52:32 PM

Title: Can I combine two different global events from 2 projects? [SOLVED]
Post by: Gav (HeyBud) on March 16, 2018, 05:52:32 PM
Hello, I have two separate Unity projects that i'd like to integrate. I'd like to export a  scene from the second project as a custom package and import it into the first project.

How can I combine the global variables of both projects? Or how can I add the new global variables/events to the other?

Thanks for your time.
Title: Re: Can I combine two different global events/variable files from 2 projects?
Post by: djaydino on March 17, 2018, 12:03:34 AM
Hi.
There is a export/import globals in the playmaker menu you can use.
But be sure to make a backup from your project before you try.

Also you should try to minimize using globals.
Title: Re: Can I combine two different global events/variable files from 2 projects?
Post by: Gav (HeyBud) on March 18, 2018, 03:31:47 PM
Thanks, DJayDino!

Why is it best practice to minimize global variables? It seems easiest if Prefabs just grab a global variable, rather than going through more actions to find out that info from a scene object.

Thanks
Title: Re: Can I combine two different global events/variable files from 2 projects?
Post by: djaydino on March 19, 2018, 02:24:59 AM
Hi.

Globals are easy the be hacked by cheat engines, when you start to get lots of variables, it gets messy.

Here are some  ways you can connect prefabs to scene objects :

Title: Re: Can I combine two different global events/variable files from 2 projects?
Post by: Gav (HeyBud) on March 19, 2018, 05:21:55 PM
Cool, thanks!