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
1
Question by tw1st3d · Apr 18, 2014 at 12:08 AM · androidcursortextarea

TextArea with Custom Image has no flashing indicator

Hey guys, been having an issue with some custom TextArea's that use an input image as the background. When I use the background image, the TextArea has no flashing line to indicate where you are in the textarea.

This is what it looks like idle,

alt text

And this is what it looks like active

alt text

This is the GUI code I'm using to generate the lines

 if (appSystem.settings.guiId == 1) {
             GUI.SetNextControlName("site-name");
             appAccount.settings.siteName = GUI.TextArea(new Rect(20, 84, 280, 30), appAccount.settings.siteName, inputField);
             GUI.SetNextControlName("user-name");
             appAccount.settings.userName = GUI.TextArea(new Rect(20, 132, 280, 30), appAccount.settings.userName, inputField);
             GUI.SetNextControlName("pass-word");
             appAccount.settings.passWord = GUI.TextArea(new Rect(20, 182, 280, 30), appAccount.settings.passWord, inputField);
 
             if (UnityEngine.Event.current.type == EventType.Repaint)
             {
                 if (GUI.GetNameOfFocusedControl () == "site-name")
                 {
                     if (appAccount.settings.siteName == "Site Name") {
                         appAccount.settings.siteName = "";
                     }
                 } else {
                     if (appAccount.settings.siteName == "") {
                         appAccount.settings.siteName = "Site Name";
                     }
                 }
 
                 if (GUI.GetNameOfFocusedControl () == "user-name")
                 {
                     if (appAccount.settings.userName == "Username") {
                         appAccount.settings.userName = "";
                     }
                 } else {
                     if (appAccount.settings.userName == "") {
                         appAccount.settings.userName = "Username";
                     }
                 }
 
                 if (GUI.GetNameOfFocusedControl () == "pass-word")
                 {
                     if (appAccount.settings.passWord == "Password") {
                         appAccount.settings.passWord = "";
                     }
                 } else {
                     if (appAccount.settings.passWord == "") {
                         appAccount.settings.passWord = "Password";
                     }
                 }
             }

Can anyone tell me what's going on?? I've also declared the flashing speed of the indicator with:

 GUI.skin.settings.cursorFlashSpeed = 3;


screenshot_1.png (3.7 kB)
screenshot_2.png (3.8 kB)
Comment
Add comment · Show 3
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 tw1st3d · Apr 18, 2014 at 01:01 PM 0
Share

Feel like an ass, but bumping.

avatar image tw1st3d · Apr 28, 2014 at 12:58 PM 0
Share

Still haven't found a fix for this! Anyone have a clue?

avatar image tw1st3d · May 28, 2014 at 09:43 PM 0
Share

So I have yet to figure this out, can anyone try to share some insight on the issue?

0 Replies

· Add your reply
  • Sort: 

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

21 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Disappearing text on Android devices 3 Answers

cursor.visible(false) not working on android TV 1 Answer

TouchScreenKeyboard not working with GUI.TextArea (tested with Android tablet) 0 Answers

Editable text field in Android with cursor 0 Answers

Access selected text or cursor position of TextArea in CustomEditor 0 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