playMaker

Author Topic: UI and Playmaker giving me trouble  (Read 2652 times)

InThAfAcE

  • Playmaker Newbie
  • *
  • Posts: 11
UI and Playmaker giving me trouble
« on: February 19, 2021, 04:04:26 PM »
Hi. I'm currently working on a main menu in unity with playmaker for a VR game for Oculus Quest. Everything works fine in the computer (in unity game mode), but when i build and test on the actual headset nothing happens when i click the buttons with the pointer. They react on the click, but no action.

Could someone please tell me where to look?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: UI and Playmaker giving me trouble
« Reply #1 on: February 19, 2021, 06:26:30 PM »
Hi.
What actions did you use?

Can you show your setup?

InThAfAcE

  • Playmaker Newbie
  • *
  • Posts: 11
Re: UI and Playmaker giving me trouble
« Reply #2 on: February 19, 2021, 06:57:04 PM »
Hi.
What actions did you use?

Can you show your setup?

It's fairly simple setup i think. I'm new to unity and playmaker and this is how it made most sence for me. But here you go. I'm sending some events from the buttons to playmaker and enabling some one canvas and disabling another. Only one button is doing something else than that. The funny thing is that the first button on the main menu is working. And every main menu button is working if i send the same event from all buttons. But if i choose different events only the top one is working called "Let's go camping!"







EDIT: I know the object called UICmdController with my FSM in the hieraracy is inactive but thats something i just did.
« Last Edit: February 19, 2021, 06:59:29 PM by InThAfAcE »

InThAfAcE

  • Playmaker Newbie
  • *
  • Posts: 11
Re: UI and Playmaker giving me trouble
« Reply #3 on: February 19, 2021, 07:24:07 PM »
I'm pretty sure the issue is the buttons not sending events when clicked, but i have no idea why. I tried using Playmaker actions to do it instead of the "on click" thing built into the buttons, but that didnt help.

InThAfAcE

  • Playmaker Newbie
  • *
  • Posts: 11
Re: UI and Playmaker giving me trouble
« Reply #4 on: February 20, 2021, 03:37:15 AM »
I got it working. Simply tried setting the whole thing up again using UI Button Array instead of the "onclick" event on the button.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: UI and Playmaker giving me trouble
« Reply #5 on: February 20, 2021, 06:02:40 AM »
Hi.

Your setup should work.

Maybe that target fsm on a object with multiple fsms?
if so, you need to make sure the target fsm is on top of the other fsms.

its a unity thing, its not made to look for multiple component of the same type and it just takes the 1st one in the list.

But button actions work fine, i just wanted you to know :)