Cities2Modding / Gooee

Gooee is a UI framework for Cities Skylines 2
GNU General Public License v3.0
3 stars 3 forks source link

Adding an OnUpdate() which is called after each model update #2

Closed 89pleasure closed 9 months ago

89pleasure commented 9 months ago

I recognized it would be awesome to have virtual override void OnUpdate() which can be called in a controller which is triggered automatically after the model updates. Right now I setup a custom void with OnTrigger annotation for it, but that feels duplicated since I have to call it always after each change on a model in the jsx files.

optimus-code commented 9 months ago

There is now a method you can override in the controller called "OnModelUpdated" that is triggered on change.