playMaker

Author Topic: Organized Variables with "/"  (Read 1803 times)

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Organized Variables with "/"
« on: January 10, 2019, 08:14:45 AM »
Hello,

After updating to latest Unity and Playmaker, Variables aren't grouped anymore, I cannot find an option in the preferences, am I missing something or is this a bug? Picture Attached

Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Organized Variables with "/"
« Reply #1 on: January 10, 2019, 01:14:03 PM »
Variables can be organized?  ???
Available for Playmaker work

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Organized Variables with "/"
« Reply #2 on: January 10, 2019, 01:25:39 PM »
Well, it's basically grouped, for example, all player stats can go under the same category when you name it like this:

Player / Health
Player / Damage
Player / Armor

and so on,

So you will get just one "Player" Variable, but when you hover over it, it will expand to the Sub 3, Health, Armor and Damage
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Organized Variables with "/"
« Reply #3 on: January 11, 2019, 02:43:48 AM »
Hi,

 ok, I can reproduce here as well, I have raised a ticket internally, hopefully this is not a bug in Unity and we can adjust inside PlayMaker.

 Bye,

 Jean

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Organized Variables with "/"
« Reply #4 on: January 11, 2019, 11:15:20 AM »
Great thank you,
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Organized Variables with "/"
« Reply #5 on: January 11, 2019, 11:29:34 AM »
It looks like Unity changed the way they parse the "/" divider.
It still works if there are no spaces around the "/" character.
But if you use a space in front: " /" it now breaks, showing multiple entries.

There seem to be a bunch of subtle changes like this in 2018.3, probably because Unity is moving to UIElements under the hood, so editor behaviour can change :(

I'll submit a bug report to Unity.

In the meantime, we should be able to patch this in our code by replacing " /" with "/" when building menus, but it will need to be tested thoroughly! If you have a project that uses this a lot, please PM for beta access so you can test a build that fixes this issue.

Thanks!
Alex

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Organized Variables with "/"
« Reply #6 on: January 11, 2019, 02:35:50 PM »
Yes it's understandable, My project has a lot of variables and uses this heavily to keep it organized, I think I am already in Beta and I will test it out on a separate project, I will report back, thank you for the help.
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Organized Variables with "/"
« Reply #7 on: January 11, 2019, 03:19:21 PM »
Yes it's understandable, My project has a lot of variables and uses this heavily to keep it organized, I think I am already in Beta and I will test it out on a separate project, I will report back, thank you for the help.

Thanks! The fix isn't in the beta yet, but should be in the next build, some time next week...
If you can test on a copy of the project that uses it heavily that would be ideal, to make sure it doesn't have any unwanted side effects.