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. Dismiss Notice

Inputfield TMP text becomes invisible when rotated a certain direction in a world space camera

Discussion in 'UGUI & TextMesh Pro' started by Seve2, Jan 28, 2021.

  1. Seve2

    Seve2

    Joined:
    May 13, 2019
    Posts:
    17


    I discovered my TMP Inputfield stops working when I rotate it in certain direction while using world space camera. I am using Unity 2019.4.17f1 am not sure if this is a bug
     
    JevinLevin_ likes this.
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    This behavior is expect as a result of the use of the RectMask2D present on the child "Text Area" object.

    The RectMask2D only works in 2D and does not support rotation.

    If you need rotation, you can replace this component by a UI Mask but be mindful that the UI Mask will use instance materials and does not support padding or soft masking.
     
    JevinLevin_ likes this.
  3. Seve2

    Seve2

    Joined:
    May 13, 2019
    Posts:
    17
    Thanks for the info, that explains it