Import shapefiles to Unity

671
3
Jump to solution
11-02-2023 01:13 PM
Ed_
by MVP Regular Contributor
MVP Regular Contributor

Is it possible to export point, line and polygon shapefiles to Unity 3D engine?

Question | Analyze | Visualize
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Robert_LeClair
Esri Notable Contributor

Is your shapefile Z-enabled?  Meaning the shape column is either a PointZ, PolylineZ or PolygonZ?  If so, then you can export it out to a *.obj file, *.dxf or a *.dae file and import that into Unity 3D.  The Data Interoperability Tools->Quick Export will export out to those formats.

View solution in original post

3 Replies
Robert_LeClair
Esri Notable Contributor

Is your shapefile Z-enabled?  Meaning the shape column is either a PointZ, PolylineZ or PolygonZ?  If so, then you can export it out to a *.obj file, *.dxf or a *.dae file and import that into Unity 3D.  The Data Interoperability Tools->Quick Export will export out to those formats.

Ed_
by MVP Regular Contributor
MVP Regular Contributor

Hi @Robert_LeClair  happy Friday and thank you for providing a solution. So, my layers are all 2D with Z not enabled. Is there a way to enable it?

Question | Analyze | Visualize
0 Kudos
Robert_LeClair
Esri Notable Contributor

So one way is to create a new shapefile with the Z parameter enabled and the same attribute structure (there's an import schema/table parameter when you create the new feature class).  Next, run the Append GP tool and append the existing features from the 2D enabled shapefile to the newly created 3D enabled shapefile.  Lastly, if you have the Spatial Analyst extension, use the Add Surface Information geoprocessing tool to extract the Z-value from an elevation surface.  Now you have a Z enabled shapefile!