Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by In-D Gaming · Nov 21, 2012 at 04:13 PM · guitextfieldchat

in-game chat woe...

I have an in-game chat in my game. When you press T it shows the text field. Two main problems, ONE because of cursor lock, the game must be paused to type. TWO you cant send by pressing enter if the textfield is in focus.. how can I work around this?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dave-Carlile · Nov 21, 2012 at 04:56 PM 0
Share

Are you saying you want the game to pause while typing? Because it doesn't by default.

avatar image In-D Gaming · Nov 22, 2012 at 01:12 AM 0
Share

I want to be able to type without having to click in the textfield, and also send without exiting the focus of the text field.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Dave-Carlile · Nov 21, 2012 at 04:56 PM

For the "press enter to send" part of your question, refer to this discussion: http://forum.unity3d.com/threads/69361-GUI.TextField-submission-via-quot-return-quot-key...

Basically, you need to check the keypresses and look for the return key.

For the "pause to type" part - the game will not pause while using the text field. Can't tell from the question if you want it to pause or not.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image In-D Gaming · Nov 22, 2012 at 01:09 AM 0
Share

Ignoring the "pause" word, the problem is really just cursor lock. The text field does not come in focus unless I click it, however I cannot click it unless I unlock the cursor by opening my pause menu.

How can I allow the textfield to let me type without having to click inside of it?

avatar image
0

Answer by XienDev · Nov 21, 2012 at 05:04 PM

for the second part of your question, just draw cursor when textfield is opened =)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by In-D Gaming · Nov 22, 2012 at 10:08 AM

OK, my problem is fixed. I looked into Dave's link and fixed that issue, and somehow the other one is fixed too. Thanks!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can you have a scrollview inside a textfield? 0 Answers

Building a Message Board 0 Answers

Text fields where text will scale along with resolution. 1 Answer

Clear gui Text field 1 Answer

GUI custom textfield cursor rendering 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges