#Button not working
1 messages · Page 1 of 1 (latest)
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
i've kept as simple as possible and it still odesnt work
i completly deleted canvas and set it up again
i guess its a code error then here is my logicscript code in case its here
Is your active input handling set to use the new system?
no its using the old version because i use the old version in my birdscript
when i compiled for android using the new it didnt work but when i compiled using the old version it worked
now im reallly confused lol
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
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:
altho i shoulda tested like this..
with all the other gameobjects disabled for the time while im testing
but when u use old then everything and the button doesn't work?
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 🍀
yes i completly deleted it and started it over
atleast thats (1) thing eliminated from the possible culprits
ill try compling for android with BOTH inputs to see it still works
best of luck 👍
thanks for your time anyways!
update: it works perfectly when using both inputs thanks very much!! do you have any tips tho to make the touch input response time faster?
- in project settings > player > android there should be something called Optimized Frame Pacing
- 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
thanks
But it looks like you're using the new input module!
Ah yeah I see you got sorted out
sounds a bit hacky to have to have both inputs running simultaneously to work...
but if it aint broke dont fix it i guess
Isn't it just because they're using the input system UI input module?