ElmarJ / GeoJsonCityBuilder

Unity Package to recreate a 3D-city from a specially crafted geojson file.
MIT License
22 stars 2 forks source link

Import .geojson-files with custom Asset importer #6

Open ElmarJ opened 4 years ago

ElmarJ commented 4 years ago

Currently, we import the geojson-files as text assets using the .json extension.

Resources / interesting reads:

ElmarJ commented 4 years ago

This would mean not using TextAsset. Moving away from TextAsset would actually be a good idea, as it would also allow us te keep the .geojson-files out of the runtime assets - they are not used at runtime anyway.

ElmarJ commented 2 months ago

See https://docs.unity3d.com/Manual/ScriptedImporters.html for info on writing custom importers for specific file extensions. This would also make it easier to:

  1. Put the git submodule with geojson-files directly in the assets folder.
  2. Store metadata (such as original git-filelocation of the geojson file)