Is it possible to export point, line and polygon shapefiles to Unity 3D engine?
Solved! Go to Solution.
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.
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.
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?
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!