playMaker

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

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • 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, 02:22:35 PM by Sarcophagav »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4459
    • View Profile
    • 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.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • 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, 12:34:24 PM by Sarcophagav »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4459
    • View Profile
    • 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 :

FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Cool, thanks!