Environment: Windows 11, Unity 6000.3.25f1, unity CLI 1.2.0-alpha.1, com.unity.pipeline 1.2.0-pre.1, Git Bash. Vector2Int also on com.unity.pipeline 1.0.1.
Steps
- Add a component with a Vector2Int field, a Vector3Int field, a RectInt field and a LayerMask field (for example Camera.cullingMask).
- unity command component get_fields --target /<object> --component <component>.
- {{unity command component set_field --target /<object> --component <component> --field <vector2Int field> --value '
{"x":2,"y":3}
'}}.
- The same for the LayerMask field.
Actual
The fields are not supported as a whole; each set fails (exit 2).
Expected
set_field and get_fields support Vector2Int, Vector3Int, RectInt and LayerMask as whole values, with the same JSON shape in both directions.
Workaround
Set the sub-fields one at a time: <field>.x and <field>.y; for a LayerMask, m_CullingMask.m_Bits.