playMaker

Author Topic: Script conflict issue  (Read 13367 times)

buggie

  • Playmaker Newbie
  • *
  • Posts: 10
Script conflict issue
« on: April 21, 2025, 11:05:18 PM »
I have an asset from the Unity asset store called UHFPS (Ultimate Horror FPS Kit URP) by ThunderWire Studio.

Unfortunately when both packages are installed UHFPS mouse look breaks. Its like the mouse can no longer be attached to the game window. It will still detect mouse interaction with UI, but it no longer will mouse lock or hide the mouse, and camera look doesn't move. I have tried fixing it with Playmaker, but the FSM also can't hide or lock/look with the mouse.

I have spoken with ThunderWire Studio's and they think it has something to do with script load priority and think Playmaker disrupting the script load order; maybe changing a pointer somewhere. They looked into it however later responded by saying it was beyond them. They can reproduce it, but ultimately didn't understand how the Playmaker system worked and advised I request help form Playmaker support.

I have tried loading Playmaker first, and after, however once I create a Playmaker FSM, thats right when it breaks. No errors, just no longer works. I have tried doing the pre-install compatibility check and it finds no issue. Also uninstalling/reinstalling Playmaker or UHFPS won't fix it. A new project is the only solution.

I hope I posted this in the right spot and that this is a simple fix. Any help would be appreciated.

Necomanis

  • Playmaker Newbie
  • *
  • Posts: 1
    • slice master
Re: Script conflict issue
« Reply #1 on: April 23, 2025, 05:24:52 AM »
That's a great setup! One thing that might help is syncing the health bar position to the enemy's screen position using World To Screen Point and then updating the UI element every frame. Have you tried that approach?

buggie

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Script conflict issue
« Reply #2 on: May 01, 2025, 08:29:25 PM »
Yes, and that works. I even use Emeraled AI to make monsters. I just cant figure out why making an FSM breaks camera look.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4052
  • Official Playmaker Support
    • LinkedIn
Re: Script conflict issue
« Reply #3 on: May 04, 2025, 12:15:06 PM »
Double check if you have a PlayMakerGUI component in the scene:
https://hutonggames.fogbugz.com/default.asp?W1225

Uncheck Control Mouse Cursor or delete the component if you're not using GUI/GUILayout actions. This might be interfering with other scripts that use the mouse.

buggie

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Script conflict issue
« Reply #4 on: May 10, 2025, 06:57:23 PM »
SOLVED:
Thanks you for pointing out the PlayMakerGUI. That solved it.