playMaker

Author Topic: Can I combine two different global events from 2 projects? [SOLVED]  (Read 1653 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
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.
« Last Edit: March 19, 2018, 05:22:35 PM by Sarcophagav »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
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.

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
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
« Last Edit: March 18, 2018, 03:34:24 PM by Sarcophagav »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
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 :


Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Cool, thanks!