Search Unity

Custom binding

Discussion in 'UI Toolkit' started by ayellowpaper, Jan 5, 2020.

  1. ayellowpaper

    ayellowpaper

    Joined:
    Dec 8, 2013
    Posts:
    52
    Hey,

    Basically I want to create my own reorderable list with UIElements which I can bind to a SerializedProperty. I want to keep the VisualElement in sync with the SerializedProperty, specifically react to undo/redo. I couldn't find a proper guide/tutorial or just simple documentation but hopefully someone can point me in the right direction.

    Thanks in advance
     
  2. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    398
  3. ayellowpaper

    ayellowpaper

    Joined:
    Dec 8, 2013
    Posts:
    52
    Thank you for the response uMathieu! This helps a lot and will make it possible for me to create the reorderable list myself. I just have several more question.
    1. Is this the same implementation used for the native PropertyField and when binding other fields to properties?
    2. If it is, can I access the default Unity poll frequency? I want to stay as close as I can to your native implentation.
    3. If I can't access it, what is your poll frequency? 100?
    Thanks in advance!