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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Control with data binding

Discussion in 'UI Toolkit' started by yurdevor, Oct 10, 2022.

  1. yurdevor

    yurdevor

    Joined:
    Jul 28, 2022
    Posts:
    3
    Hello everybody! I'm trying to make my own control, which should read the binding-path as a ListView and bind an array of data to a specific property. Can someone show an example of how this is done? I've been looking for a solution for a couple of days. Does it even exist?
     
  2. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,256
    Editor or Runtime?
     
  3. yurdevor

    yurdevor

    Joined:
    Jul 28, 2022
    Posts:
    3
    In a custom editor. I tried writing the following code, but it doesn't seem to work with IList:
    upload_2022-10-11_16-34-53.png
     
  4. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,256
    yurdevor likes this.
  5. yurdevor

    yurdevor

    Joined:
    Jul 28, 2022
    Posts:
    3
    Thank you so much for the tip, it seems that this is what I need