Search Unity

TextMesh Pro White trail when moving UGUI element quickly

Discussion in 'UGUI & TextMesh Pro' started by vanxining, May 1, 2018.

  1. vanxining

    vanxining

    Joined:
    Mar 29, 2018
    Posts:
    20
    Hi, I try to create a TMP Text and let it follow the mouse cursor. But when I move the mouse quickly, there is a minor white trail shown on the screen as depicted by this screen record:

    https://imgur.com/a/m6XlpMV

    This white trail is somewhat uncomfortable to me, and is there a way to get rid of it? (The FPS is about 70~80 on my machine)

    The Unity version is 2018.1b12 with ECS support.

    Thanks!

    Code (CSharp):
    1. using UnityEngine;
    2.  
    3. namespace Game
    4. {
    5.     public class APMeasurer : MonoBehaviour
    6.     {
    7.         public RectTransform TextRect;
    8.  
    9.         private void Update()
    10.         {
    11.             TextRect.position = Input.mousePosition;
    12.         }
    13.     }
    14. }
    15.  
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    I am unable to see the video / GIF you linked above.

    Nothing has changed in TMP that would cause a white trail when moving an object. See if you get the same behavior out of moving a pure white square using the same technique.
     
  3. vanxining

    vanxining

    Joined:
    Mar 29, 2018
    Posts:
    20
    Hi, thanks for your reply.

    I reuploaded the GIF:


    This problem seems not only apply to TMP, but also for other UGUI elements, such as sliders. Maybe I missed something.

    Thanks!
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    It is hard to tell from the video. Since you are recording the screen, this could be lag on the monitor which is most visible with high contrast. It could also be something in the beta.

    Try the same thing with a white black cube against the same background.
     
  5. vanxining

    vanxining

    Joined:
    Mar 29, 2018
    Posts:
    20
    Hi, I tried move a white black cube using the same method:


    If I play the movie in a 0.5x speed (or frame-by-frame), the white trail vanishes. So this should be a problem of my monitor.

    Please forgive my stupid question. Thanks again! :D