Skip to content

v2.10.0

Choose a tag to compare

@santiandrade santiandrade released this 02 Sep 23:04
· 18 commits to main since this release

Added

  • New Runtime API (CityGeneratorAPI, Packages/.../Runtime/API/): a static, module-per-tab
    (City, Player, Traffic, Pedestrians, Minimap, Audio) read entry point for a generated
    city's data, working the same in Editor Play Mode and in a player build. IsCityAvailable and
    every getter degrade to a safe default (0/false/Vector2Int.zero/Vector3.zero/null) instead of
    throwing when no city is active. A small number of setters already safe at runtime are exposed:
    City.SetDayNightEnabled/SetHour, Minimap.SetVisible/SetViewRadiusMeters. Backed by a new
    CityGeneratorInfo runtime component that CityGeneratorSceneBuilder/CityGeneratorContentAssembler
    populate on every Build/Re-Build. See docs/api-reference.md. CityGeneratorInfo's Inspector is
    now read-only (Editor/CityGeneratorInfoEditor.cs) since it's a build-time snapshot, not a live
    control — hand-editing its fields never had any effect on the generated city.