How to get value of transitionDuration
?
My existing code for this task is:
VisualElement _creditSection;
rivate void Start()
{
var rootElement = uiDocument.rootVisualElement;
_creditSection = rootElement.Q("CreditSection");
Debug.Log(_creditSection.style.transitionDuration.value);
}
However, I am receiving null
for this in console. I understand it’s because the value is of object type, but I don’t know how to get the value of the transition duration.