#UI input issue

1 messages · Page 1 of 1 (latest)

lost wraith
#

Can you screenshot this gameobject's inspector?

simple pine
lost wraith
#

I presume it's still interactable when spawned

simple pine
#

Hold on

lost wraith
#

(the Canvas Group)

simple pine
#

No, lemme check

#

Yes, it is on

lost wraith
#

can you screenshot the stuff that's under this part of the hierarchy in play mode, like playermenu, and whatever else is there. If they have UI elements that accept input they could be blocking the buttons

simple pine
#

Wait, hmm

#

They shouldn't... because I can still interact with stuff in the hud

#

If i put a button there it works

lost wraith
#

do the UI_Window or UI_Window_Dialogue scripts implement any of the IPointer interfaces (or any of the other input interfaces?)

lost wraith
#

Open the scripts and look at what they inherit from that isn't just MonoBehaviour

simple pine
#

Yes, they are both mono

lost wraith
#

To confirm, you're saying you can put a button up around here in the hierarchy and it'll be clickable?
Is that the case over parts of the screen closer to the buttons with the input issue?

#

It's really hard to hunt this down haha

#

You might be able to select the Event System in the scene, and look at the preview section when hovering the buttons that don't work

#

see if it gives you information about what you're hovering

simple pine
#

Wait, I was able to fix it

#

Odd fix too... just remove some stuff

lost wraith
#

I presume whatever that stuff is was absorbing the events via one method or another

simple pine
#

I think

#

Wait I think there was an error

#

Because I remember there being one when the player interacted with the object to do all this, now it is gone

#

Maybe it disabled the gameobject?

#

Hmm... still here

#

The error for the player still happens...

lost wraith
simple pine
#

Ooo sorry bout that

#

Everything works now though!

lost wraith
#

Awesome, what was it? I Missed what you changed

simple pine
#

Oh, so I basically removed something complicated. In the UI script, there was a reference to all windows loaded currently, but I guess it wasn't the best, so I removed it

#

Also removed the UI_Window script and the Canvas Group

simple pine
#

Thanks Vertx!!

lost wraith
#

No worries, I feel like I still don't quite know what was causing the issue, but I'm glad it's fixed haha