Hello,
Can anyone please tell me what is the current class priority?
It seems somewhat arbitrary and some “base-field-class” seem to be non overridable.
Is there a way to show the CurveField AnimationCurve grid without clicking?
Disabling interaction and creating the curve in codes works fine but the result is a curve alone on the background
Is the only way to display multiple curves to stack AnimationCurve?
Or is there another tools more appropriate for that?
thanks
Hi Rothzeta,
Look at the Selector Precedence section here : https://docs.unity3d.com/Manual/UIE-USS-Selectors.html
Another thing to keep in mind is that any styles you set takes precedence over Unity default styles. This means that “base-field-class” should be easily overridable, you may have another issue if that isn’t working for you…
You can try to send a KeyDownEvent with the KeyCode.Return key code to the CurveField. This should open the curve editor.
The CurveField is the only built in field that display curves. However, you can create your own field if needed.
Thank youfor the reply.
The error came from removing the style attribute from a node in the uxml file manually it didn’t properly register and nedded an editor restart.
Thanks but what I need is to display the curve editor inside the the CurveField or any VisualElement for that matter.
I think i’ll have to create a custom field.
Also the editor seems to be really dislike when the uxml file are edited directly even if you “refresh” the assets I often need to restart the editor / delete the meta files.
PS: there seems to be a bug if you add ‘<’ or ‘>’ character in the text field of a button the ui builder does not escape it and causes the file to be unloadable
Feel free to report a bug using the bug reporter, we’ll make sure to take a look. (Help → Report a bug)
We are already tracking this bug. No need to report it. Should be fixed in the next version of the UI Builder package.