Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 jrpimentel · Apr 02, 2017 at 10:06 AM · dialogue

Autotyping dialogue text: words at end of line jumping to next line halfway through being typed and it looks ugly

Hello everyone,

I just finished making an auto-typing dialogue text box system using a coroutine that takes the string to be typed into the UI text field and loops through the string adding one letter at a time with a tiny delay in between each loop iteration to give the impression of auto-typing/scrolling text. It's pretty standard stuff and is working fine right now for what it is.

My only issue is that if it's typing out a string that's a short paragraph with several lines within the text box and a long word in the string being typed out falls at the end of a line but doesn't quite fit, the characters will begin being typed at the end of the line, but then when the full word doesn't fit in the space of the text box, the partial word jumps to the next line and finishes getting typed there. The words jumping from the end of one line to the beginning of the next as they are typed out is a small subtle thing, but it's driving me crazy and I think it looks bad.

I'm trying to figure out how to fix this but for the life of me I can't come up with a solution. I tried splitting the string into individual words instead of letters and slightly increased the delay time between writing out each word which gets rid of the jump problem, but having the function write out the paragraph word by word instead of letter by letter looks much worse and more clunky and I wasn't happy with that as a solution when I implemented it. All tutorials I've searched for involving auto-typing dialogue boxes have failed me and I couldn't find anything from hours of google searches. Do any of you have any ideas on how to get around this annoying word jump while still maintaining the auto-type text effect? Any ideas on how to approach this would be superbly appreciated.

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 jrpimentel · Apr 01, 2017 at 10:18 AM 0
Share

Here's a gif showing what I mean, with the issue I'm trying to figure out how to fix happening on the words TELEPORTATION and WITHOUT

http://i.imgur.com/9a5toF0.gif

avatar image jamesm12 · Jul 09, 2017 at 04:30 PM 0
Share

Did you ever figure this out? I'm having the same problem.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

string problem 2 Answers

Dialogue strategy? 0 Answers

How to make dialog window? 1 Answer

VR RPG like dialogue system 1 Answer

Dialouge isnt working 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