Search Unity

Question Is data binding available for runtime UI?

Discussion in 'UI Toolkit' started by adammpolak, Jun 18, 2022.

  1. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    Or only for editor windows?
     
  2. FaithlessOne

    FaithlessOne

    Joined:
    Jun 19, 2017
    Posts:
    324
    Unfortunately data binding is only for editor time. In my opinion a solid data binding system can enhance clean code and speed up the deveopment, so it should be part of the Unity runtime. So in my project I ended up implementing my own data binding system for the runtime to enable some kind of Model-View-ViewModel pattern with some restrictions and tradeoffs.
     
    awesomedata likes this.