Environment: Windows 11, Unity 6000.3.25f1, unity CLI 1.0.0-beta.17, com.unity.pipeline 1.0.1, Git Bash.
Steps
- In play mode on a scene with a UIDocument:
unity command script eval "return UnityEngine.Object.FindFirstObjectByType<UnityEngine.UIElements.UIDocument>().rootVisualElement.Q<UnityEngine.UIElements.Button>() != null;".
Actual
CS1061 on Q<T>: inline code gets no using UnityEngine.UIElements, and the error does not say why.
Expected
The namespace is among the default usings, or the error suggests --auto-import or a file.