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 Detect When a UI Input Field is Active and Freeze Controls?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to Detect When a UI Input Field is Active and Freeze Controls? (Read 1451 times)
westingtyler
Sr. Member
Posts: 277
How to Detect When a UI Input Field is Active and Freeze Controls?
«
on:
August 27, 2018, 09:20:49 PM »
When players click on the input field and start typing, the key-based controls still go wacky and operate normally, when they should be frozen.
I've just started trying the UGUI, so I am curious how to have something that checks if the field is active each frame, and keep other controls disabled during this time.
Here is a video of the problem. Check at the 8:17 mark.
//www.youtube.com/watch?v=R0YgDi2IyZg
Logged
westingtyler
Sr. Member
Posts: 277
Re: How to Detect When a UI Input Field is Active and Freeze Controls?
«
Reply #1 on:
August 28, 2018, 01:21:13 AM »
I've solved it! it turns out there's a Set and Get Property feature for Input Field objects: IsFocused. Just get that bool, and prevent other commands that attempt to execute, until IsFocused bool is false. Get/Set Property is super powerful. So much to learn!
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: How to Detect When a UI Input Field is Active and Freeze Controls?
«
Reply #2 on:
August 28, 2018, 03:51:55 AM »
Hi,
Cool, it's good that you found your way out of this, but be aware there is a dedicated action for this: UiInputFieldGetIsFocused
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How to Detect When a UI Input Field is Active and Freeze Controls?