Search Unity

(Solved)How to force update visual element on the "current frame" ?

Discussion in 'UIElements' started by unity_IpxdANggCs1roQ, Aug 13, 2019.

  1. unity_IpxdANggCs1roQ

    unity_IpxdANggCs1roQ

    Joined:
    Feb 19, 2018
    Posts:
    11
    MarkDirtyRepaint() toggles flag so it causes update on the next frame.

    But I want to force update my visual element on the current frame.

    Any solutions?
    thank you.
     
    Last edited: Aug 13, 2019
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    98
    Hello,

    This is not really possible with the way the system is designed. Can you tell us a bit on what are you trying to accomplish? Maybe there is a different approach.
     
  3. unity_IpxdANggCs1roQ

    unity_IpxdANggCs1roQ

    Joined:
    Feb 19, 2018
    Posts:
    11
    Thanks for your reply.

    Something was wrong with my code, but now MarkDirtyRepaint works well for my situation.
    Thx!
     
    Last edited: Aug 16, 2019