playMaker

Author Topic: [PS4] Cannot convert type PlayMakerGUI to Behaviour... [SOLVED]  (Read 1411 times)

Skermunkel

  • Playmaker Newbie
  • *
  • Posts: 36
[PS4] Cannot convert type PlayMakerGUI to Behaviour... [SOLVED]
« on: January 29, 2018, 06:54:52 AM »
Hi,

We are busy with our first PS4 title and after gaining access to the Unity license and our dev kits and having everything setup I switched to PS4 and noticed that I get the following compiling error from the PlayMakerGUIInspector.cs script:

Assets/PlayMaker/Editor/PlayMakerGUIInspector.cs(112,46): error CS0039: Cannot convert type `PlayMakerGUI' to `Behaviour' via a built-in conversion

which is caused by the following line:

var behavior = (PlayMakerGUI)component as Behaviour;

I am running Unity 5.6.4p4 and Playmaker 1.8.9 (was on 1.8.4 at first and updated to 1.8.6 and then 1.8.9 to check if it might be fixed).

Does anyone have any idea what might be causing this issue, please any help on the matter would be greatly appreciated.
« Last Edit: January 29, 2018, 03:22:14 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Hi, try replacing the line with:
Code: [Select]
var behavior = (PlayMakerGUI)component;
Not sure why it would fail on PS4, but the code is a little messy. I'll clean it up for the next update.

Skermunkel

  • Playmaker Newbie
  • *
  • Posts: 36
Awesome thank so much for the quick reply Alex, that fixed it! :)