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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question m_text filed dont change when use nonAlloc method SetCharArray in build

Discussion in 'UGUI & TextMesh Pro' started by Vladnee, Oct 18, 2022.

  1. Vladnee

    Vladnee

    Joined:
    Apr 28, 2017
    Posts:
    26
    In the text property getter when m_IsTextBackingStringDirty is true, don't change m_text field by the method
    InternalTextBackingArrayToString(). So after the first call, all the next others return the wrong value.

    So, I changed this code to this, and this problem fixed
    upload_2022-10-18_23-7-42.png

    What are your thoughts on this?
    TMP version 3.0.6

    Best regards)