Skip to content

Make render-test scenes editable in UntoldEditor - #1379

Merged
untoldengine merged 1 commit into
developfrom
issue/1377
Oct 20, 2026
Merged

untoldengine merged 1 commit into
developfrom
issue/1377

Conversation

@untoldengine

Copy link
Copy Markdown
Owner

Summary

  • Reshapes Tests/UntoldEngineRenderTests/Resources/ to be untoldengine create-shaped: Scenes, Models, StreamModels, Animations, Gaussians, Materials now live under a new Resources/GameData/ directory, matching .rootLevel detection in ProjectLayout. Fixes the pre-existing Guassians typo along the way.
  • Adds a minimal Resources/project.yml placeholder, since UntoldEditor's openProject() first gates on <name>.xcodeproj or project.yml existing before it even checks for GameData.
  • Updates DemoUtils.demoResourcesURL() and two hardcoded fixture paths (BakeLODsCommandTests.swift, UntoldAssetPatcherTests.swift) to the new GameData-relative locations, since those read straight off disk rather than through a bundled resource lookup.
  • Leaves BaseRenderSetup's assetBasePath pointed at the bundle root: SwiftPM's .process("Resources") flattens the whole tree regardless of the on-disk GameData nesting, and the existing flat-bundle fallback in getResourceURL already handles that case.

Closes #1377

Test plan

  • swift build succeeds
  • swift test --filter RendererTest — 33 tests, 0 failures (1 opt-in skip)
  • swift test --filter SkyPassSmokeTest, UntoldAssetPatcherTests/testRealCookedFixtureRoundTrips, CLI BakeLODsCommandTests — all pass
  • Opened Tests/UntoldEngineRenderTests/Resources in UntoldEditor and confirmed it's recognized as a project (browsed/edited UnitTestRender.untoldscene and Models/*)

Reshape Tests/UntoldEngineRenderTests/Resources/ to be GameData-shaped
(untoldengine create layout) so UntoldEditor recognizes it as a project
and UnitTestRender.untoldscene/Models can be browsed and edited there
instead of hand-editing JSON.

- Move Scenes, Models, Animations, Materials under a new Resources/GameData/
  directory; fix the Guassians -> Gaussians typo along the way. Materials
  moves too even though it's not in ProjectLayout.gameDataCategories,
  since LoadingSystem resolves it relative to assetBasePath and the editor
  itself expects it alongside GameData's other categories.
- Add a minimal Resources/project.yml placeholder: UntoldEditor's
  openProject() gates on <name>.xcodeproj or project.yml existing before
  it even looks for GameData.
- Update DemoUtils.demoResourcesURL() and two hardcoded CLI/engine test
  fixture paths to the new GameData-relative locations (they read straight
  off disk, not through a bundled resource lookup).
- Leave BaseRenderSetup's assetBasePath pointed at the bundle root:
  SwiftPM's .process("Resources") flattens the whole tree regardless of
  GameData nesting, and the existing flat-bundle fallback in
  getResourceURL already handles that.
@untoldengine
untoldengine merged commit 41c1810 into develop Oct 20, 2026
3 of 4 checks passed
@untoldengine
untoldengine deleted the issue/1377 branch October 20, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make render-test scenes editable in UntoldEditor (GameData-shaped test Resources)

1 participant