Environment: Windows 11, Unity 6000.3.25f1, unity CLI 1.0.0-beta.17, com.unity.pipeline 1.0.1, Git Bash.
Steps
- unity command gameobject create --name Screen; unity command component add --target /Screen --type UIDocument.
- {{unity command component set_field --target /Screen --component UIDocument --field sourceAsset --value '
{"path":"Assets/<a>.uxml"}
'}}.
- unity command component get_fields --target /Screen --component UIDocument.
- Pass the reference printed in step 3 ({{
{"assetPath": ...}
}}) back as --value of set_field.
- On a component with an enum field (for example PanelSettings.scaleMode): set_field --value '"ScaleWithScreenSize"'.
Actual
Step 4 and step 5 are rejected (exit 2). The accepted forms are {{
{"path": ...}
}} and the bare name ScaleWithScreenSize.
Expected
set_field accepts what get_fields prints, and an enum name as a JSON string.