playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How to set focus on an UGUI Button at runtime?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to set focus on an UGUI Button at runtime? (Read 2092 times)
phannDOTde
Full Member
Posts: 237
How to set focus on an UGUI Button at runtime?
«
on:
June 29, 2015, 11:43:38 AM »
I saw that pre-setting an Button as "first selected" in the event system works fine but how do I switch that "first selected" object at runtime? Found this in the Unity DB
http://docs.unity3d.com/460/Documentation/ScriptReference/EventSystems.EventSystem.SetSelectedGameObject.html
but I can't find any suitable uGUI PM action since "set property doesn't work (the "first selected" seems to be initialized only once at startup)- maybe I'm looking for the wrong thing?
Logged
djaydino
Administrator
Hero Member
Posts: 7622
Re: How to set focus on an UGUI Button at runtime?
«
Reply #1 on:
June 29, 2015, 12:00:44 PM »
maybe
this
is what you are looking for.
(check the reply from terry)
Logged
Join the PlayMaker Discord Channel!
phannDOTde
Full Member
Posts: 237
Re: How to set focus on an UGUI Button at runtime?
«
Reply #2 on:
June 29, 2015, 12:40:47 PM »
Hey Dino,
thanks for the quick answer/pointing me there - sadly it didn't help so far but I replied on that post of terri, maybe he got an solution I'm overseeing.
/peter
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How to set focus on an UGUI Button at runtime?