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 JareBear12418 · Jun 09, 2020 at 03:56 PM · unity 5meshtextmeshrenderer

How would you lower the amount of visible text lines in a TMP_Text Component?

I have this 1mb text file that is being loaded into a TMP_Text element. That text component is in a scroll view. Scrolling around is laggy, and im wondering if there is a way to only render the text that is in view of the camera? or change the amount of visible lines at a time. That way unity doesn't have to render all of the 1mb text at once. Is there anyway to maybe limit the meshes triangles? or having a render system or something?

Comment
Add comment · Show 7
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 WinterboltGames · Jun 09, 2020 at 03:57 PM 1
Share

Use the built-in "Paging" feature of Text$$anonymous$$eshPro?

avatar image JareBear12418 WinterboltGames · Jun 09, 2020 at 04:08 PM 1
Share

@WinterboltGames Do you have an sources for documentation or anything of sorts?

avatar image WinterboltGames JareBear12418 · Jun 09, 2020 at 05:21 PM 1
Share
  1. https://youtu.be/3XkauVYS6o4

  2. https://youtu.be/cuW0gWk2dAk

Show more comments
avatar image Jasr_88 · Jun 09, 2020 at 05:27 PM 1
Share

I recommend you to check out the Rect$$anonymous$$ask2d component here is the link to the documentation https://docs.unity3d.com/2020.1/Documentation/$$anonymous$$anual/script-Rect$$anonymous$$ask2D.html

Hope it helps

avatar image JareBear12418 Jasr_88 · Jun 09, 2020 at 05:44 PM 0
Share

I will give this a shot too! Thank you very much!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by VoltzerDev · Jun 09, 2020 at 08:28 PM

Hey! It's quite hard to answear your question as it is not clear what kind of a setup you are using.

A first idea would be to use a "Mask" component on you scroll view if you haven't done so already.

1) If you have, I think that your best bet is making some sort of pagination. Split the text in code into smaller bits and have a next page button.

2) In my game, I have a list with 6 TMPro's each being a line in my text and when a new line appears I just take the top TMPro change its text to the new line and put it at the bottom of the list. I use a VerticalLayout component and change the ChildIndex to change the order of the children. By using this approach you can not use unity's scroll system, you can only make your own scrolling with the press of a button that shows the next line or the previous line.

Hope that helps!

If you wanna see how it looks like in my game check out my youtube channel: https://www.youtube.com/channel/UCq-S83BCJL3r9W9t3V9aYdA

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 JareBear12418 · Jun 09, 2020 at 10:58 PM 0
Share

I think the Page system is my best bet right now. Im just getting weird issued with my text mesh, it centres its self automatically for no reason and i can't change it in run time.

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

244 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 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 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 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 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 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 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 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 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 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 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 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

Importing Blender Object Splits Mesh Into 4 1 Answer

Text Highlight word by word when background voice is playing. 0 Answers

Adding vertices to TextMesh Pro 0 Answers

why does Mesh.SetColors take a list, but Mesh.colors is an array? 0 Answers

Procedurally generated mesh not Rendering all triangles 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