playMaker

Author Topic: Changing NameSpace for Enums breaks Playmaker  (Read 613 times)

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Changing NameSpace for Enums breaks Playmaker
« on: February 28, 2023, 02:28:46 PM »
So I just changed the name of my c# script for my playmaker enums, hence I changed the namespace and now when I try to go to my FSMs the only thing that shows up is a complete broken playmaker ui with no states showing up. Tons of errors in the console, action menu doesn't load, etc.

Is this to be expected or a huge bug? I kinda hoped I could change the namespace, then just go to the states and actions the have lost reference and put the new ones in...

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Changing NameSpace for Enums breaks Playmaker
« Reply #1 on: March 01, 2023, 10:43:49 AM »
Hi.
If you add a namespace after you placed them into actions they will break.
even in scripts they will break connection.

The reference before was for example :
MyEnums.ThisEnum

When adding a name space the reference changes to :
MyNameSpace.MyEnums.ThisEnum

in code you can fix by adding a "using MyNameSpace;"

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Re: Changing NameSpace for Enums breaks Playmaker
« Reply #2 on: March 01, 2023, 01:56:50 PM »
Yeah, I mean it's clear that they will break and lose the reference, but I meant more so it breaks playmaker itself entirely instead of just losing the reference... not the same.

:) Maybe a bug?

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Re: Changing NameSpace for Enums breaks Playmaker
« Reply #3 on: March 01, 2023, 05:27:00 PM »
Another question:
do enums use reflection? I just read something about it that got me confused. And if so, it means it's way slower than just using INTs and do we need the linker wizard for it to make it work on mobile?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Changing NameSpace for Enums breaks Playmaker
« Reply #4 on: March 02, 2023, 12:34:24 AM »
Hi.
not that i know of.

Only the Get/Set Properties for example use reflections

Can you give a link to the thing you read.