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. Dismiss Notice

[solved] UI Toolkit in Inspector

Discussion in 'UI Toolkit' started by danielgsantana, Jan 12, 2021.

  1. danielgsantana

    danielgsantana

    Joined:
    Mar 11, 2015
    Posts:
    24
    Hi,
    We were working on updating an old package we have in the asset store to use the new UIElements in the inspector component. And when staying out of play mode, everything seems fine, but when in Play mode, we don't receive the ValueChange events. We also tried the SerializedPropertyChangeEvent, but couldn't capture the change that should have be capture by a bool property changed by a script at runtime.
    Is there something we are missing? We also noticed that any changes in fields (done in another script) that are bind don't appear in editor play mode on the inspector.
     
  2. danielgsantana

    danielgsantana

    Joined:
    Mar 11, 2015
    Posts:
    24
  3. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    384
    Can you provide some details about what was the issue? We're working on documentation/samples to help with inspector workflows. Maybe your experience could provide some insight :)
     
  4. danielgsantana

    danielgsantana

    Joined:
    Mar 11, 2015
    Posts:
    24
    Well it was just effects of being tired :D. We simply missed that another script wasn't doing the change we wanted, and as a result we were blaming UI Toolkit bindings from not working which wasn't the case.