playMaker

Author Topic: Events and Global Events  (Read 7576 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: Events and Global Events
« Reply #15 on: June 02, 2023, 05:05:23 AM »
Hi.
Send event works more like an array/enum, which makes it less prone to typos.

Sending events to prefabs for example, i would suggest using by name


Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 255
Re: Events and Global Events
« Reply #16 on: June 07, 2023, 11:42:51 AM »
Thing is I use Managers as globals and I set them at app start, so unless I'm in playmode, Playmaker is not aware of the gameobject that represents that global variable. Hence it's also not aware of the events/variables in it.

Should I set the Manager game objects instead directly in the global variable window? Funny I actually never even questioned that...

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: Events and Global Events
« Reply #17 on: June 08, 2023, 06:33:23 AM »
Hi.
Send Event and Send Event By Name internal is doing the same thing.
The difference is that Send event is using a preset list/enum string.