#Button not working

1 messages · Page 1 of 1 (latest)

harsh veldt
#

ill try starting over my canvas @deep walrus

deep walrus
#

keep it simple as humanly possible.. canvas, a button and thats it.. see if that works..

#

ur aware of ur sorting order correct?

#

and dont have anything else w/ a higher order that may be blocking it

harsh veldt
#

i've kept as simple as possible and it still odesnt work

#

i completly deleted canvas and set it up again

outer mango
#

Is your active input handling set to use the new system?

harsh veldt
#

when i compiled for android using the new it didnt work but when i compiled using the old version it worked

deep walrus
#

i tested my buttons real quick.. and my event system logs them..

  • canvas is @ the very bottom (drawn on top)
  • the sorting order is 0 (theres no other canva's that are higher)
  • i made sure that my cursor/and the text aren't raycast targets which would block the raycast
#

heres my settings to gander

harsh veldt
#

when i use old system: everything works except button
when i use new system: nothing works
when i use both: everything and the button works but i get this:

deep walrus
#

altho i shoulda tested like this..

#

with all the other gameobjects disabled for the time while im testing

deep walrus
# harsh veldt

but when u use old then everything and the button doesn't work?

harsh veldt
#

yes

#

everything = the game runs and i can jump using touch screen and space bar

deep walrus
#

did u try new canvas? i wonder if ur project is corrupted in some sense

#

i dont have much more for ya.. nothing you've said or shown has stood out as being something that'd cause that.. i can wish u luck and try to look a bit in my freetime 🍀

harsh veldt
deep walrus
#

atleast thats (1) thing eliminated from the possible culprits

harsh veldt
#

ill try compling for android with BOTH inputs to see it still works

deep walrus
#

best of luck 👍

harsh veldt
harsh veldt
deep walrus
#
  • use the new input system and u can subscribe to touch events directly..
#
  • in Edit > Project Settings and >Time you might be able to reduce the physics update loop to make it respond faster
#

then u can do things like lock ur frames to a lower number if u want

#

lots of little things u can do here and ther

outer mango
#

Ah yeah I see you got sorted out

deep walrus
#

sounds a bit hacky to have to have both inputs running simultaneously to work...

#

but if it aint broke dont fix it i guess

outer mango
#

Isn't it just because they're using the input system UI input module?