* Add create_child parameter to manage_prefabs modify_contents
Enables adding child GameObjects to existing prefabs via headless editing.
Supports single object or array for batch creation in one save operation.
Features:
- Create children with primitive types (Cube, Sphere, etc.)
- Set position, rotation, scale on new children
- Add components to children
- Specify parent within prefab hierarchy for nested children
- Set tag, layer, and active state
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Address code review feedback for create_child validation
- Fix type hint to `tuple[dict | None, str | None]` to match actual returns
- Add explicit dict validation with clear error message including actual type
- Error on invalid component entries instead of silently ignoring them
- Return ErrorResponse for invalid tag/layer instead of just logging warnings
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add unit tests for create_child prefab functionality
Tests cover:
- Single child with primitive type
- Empty GameObject (no primitive_type)
- Multiple children from array (batch creation)
- Nested parenting within prefab
- Error handling for invalid inputs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>