Search Unity

Is there a way to Repaint inspector on custom marker drawer?

Discussion in 'Timeline' started by dvuk89, May 27, 2020.

  1. dvuk89

    dvuk89

    Joined:
    May 11, 2020
    Posts:
    3
    Is there a way to force repaint of inspector after an array? I'm drawing elements of Array through loop.

    Code (CSharp):
    1. Button clearButton = new Button(() =>
    2. {
    3.     paramProp.ClearArray();
    4.      serializedObject.ApplyModifiedProperties();
    5.      Repaint();
    6. })
    7. { text = "Clear" };
    Repaint doesn't happen, but if I select other marker and this one again it work.