Skip to content

Consider strategy where generation is built around asset importer #50

@ElmarJ

Description

@ElmarJ

An entirely different strategy to trigger and organize object generation, might be to integrate with the asset-importer system of unity. Geojson-files are then imported as prefabs with the generated objects (just like 3d-files are imported as prefabs). All current generator settings are set as import-settings (i.e. stored in the .meta-file).

Advantages:

  • regeneration-logic is dealt with by unity
  • we can take advantage of overrides (e.g. to remove buildings that we don't want to import, or other specific adjustments).

Disadvantages:

  • requires quite some code restructuring, as the different types of generators (currently in different "Components"), will be configured from a single settings screen.
  • makes it difficult to use the same geojson-file twice in the same scene (is this a problem?)
  • detaches the generation logic from the scene

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions