How do I create a boolean field in UIToolkit

I must be missing something simple because I cannot seem to figure out how to make a boolean field in either UXML or C#. It looks like UnityEngine.UIElements.BaseBoolField is an abstract class, but why would I need to make my own class that inherits from this just to be able to generate a bool field?

2 Likes