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 mh12 · Jul 01, 2015 at 01:58 AM · unity 5inputfieldundotextareacopy-paste

Is there a notepad-like (preferably a notepad++-like) in-game text editor for use in Unity5?

I am using the Unity 5.0.2f1(64-bit) free version. I have tried both the provided Unity Input Field and GUI.TextArea and they both have pros and cons as I've found, but are not providing the desired functionality.

I have created a sort of notecard-like object that will have many fields where the user will be able to input text. In one scene, one card will have focus and the user will be able to interact with the different fields. I want the fields to already display the text from the last time the user edited the given card (i.e. the fields from the cards will be saved and loaded). In another scene, many of these cards (dozens or so) will be displayed (along with their associated fields), but the fields will not be editable. As you might guess, clicking on a card in this scene brings it up in the scene where it can be edited. I desire the fields to be as notepad++-like as possible. I want the user to be able to interact with some multi-line fields and some single-line fields. I want the user to be able to copy-and-paste text within a field and between fields (ambitiously even to and from other programs such as Microsoft Word possibly using the clipboard). I want undo/redo functionality associated with each field. I would like the user to be able to change font size and have bold/italic capabilities etc.

The provided Input Field lacks a lot of desired functionality from what I've seen. Text can only be selected from the end (not in the middle) and the caret often doesn't even show.

The GUI.TextArea has proven to be much better as it allows for selection in the middle, copy-and-paste (though I haven't tested between fields or to the clipboard), and the caret is always there as expected. However, there is no undo/redo capability and I am encountering a strange wrapping problem. Sometimes the text wraps just fine (it clips horizontally), but sometimes the text is horizontally overflowing instead of clipping, especially if I press the space bar multiple times.

In summary:

  1. Will either Input Field or GUI.TextArea give me the desired functionality, and if so, how?
  2. If not, is there something that will? (preferably free).
  3. Any other helpful suggestions concerning the application would be appreciated.

Comment
Add comment
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

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

2 People are following this question.

avatar image avatar image

Related Questions

[Bug?] uGUI InputField - Last line disappeared after cut&paste 1 Answer

Is it possible to change the default caret in an InputField? 1 Answer

How Does One Make TextMeshPro InputFields Scroll Appropriately When Their Text Components are Bottom-Aligned? 0 Answers

Unity 5 UI InputField unicode typing 0 Answers

Holotoolkit on screen keyboard won't open,Hololens on-screen keyboard won't open 1 Answer


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