Search Unity

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)