Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Static vs Dynamic Data Text

Discussion in 'UGUI & TextMesh Pro' started by Pelor, Jan 22, 2023.

  1. Pelor

    Pelor

    Joined:
    Jul 18, 2018
    Posts:
    13
    What is best practice for static vs dynamic text?

    Say I have
    resource type: value
    . Should I use two TextMeshProUGUI objects? If I should use two, should I try and attach as much static text to the static (unchanging) TextMeshProUGUI as I can or is it negligible?

    If I should separate static and dynamic text should it look like this?
    upload_2023-1-22_16-31-35.png
    Where the "Static Item 0" is one TextMeshProUGUI object and each numbered Dynamic Item is a separate TextMeshProUGUI?

    I've heard regeneration is costly, so I figured I should at least be aware of best practices.

    Thanks