I know that, if I create a custom component, I can specify default values for attributes.
Is there also a way to determine when no value has been explicitly set in the UXML markup?
I know that, if I create a custom component, I can specify default values for attributes.
Is there also a way to determine when no value has been explicitly set in the UXML markup?
This method will return true only if a value is set (each type of attribute has this method):
https://docs.unity3d.com/ScriptReference/UIElements.UxmlBoolAttributeDescription.TryGetValueFromBag.html