Skip to main content

Unity Playworks Plugin Terrain Exporter

Overview

The Unity Playworks Plugin Terrain Exporter is a tool that allows you to produce .OBJ format versions of your terrain in Unity. This intern allows Playworks Plugin developers to use this .OBJ file, along with the textures, to replace the unsupported terrain environment.

The tool is available to all Unity Playworks customers as a free Unity package in our Community Github.

How to get started

  1. Download & then import the Unity Playworks Plugin Terrain Exporter into your Unity project
  2. Make sure that the textures used for your terrain have the 'Read/Write Enabled' setting set to true in their import settings

images-small

  1. Open the Terrain Exporter via the Unity Tools tab (the same place that Playworks Plugin is located)

plugin-debugger

If Terrain Exporter displays "No terrain found" please make sure you have an active terrain in your Scene
4. Configure the [settings](#settings) to suit your needs (we recommend either 'Quarter' or 'Eighth' for the Resolution setting) 5. Hit Export and a `.OBJ`, material, and `.png` will be created in a numbered folder at 'Assets/ Unity Playworks Plugin Terrain Exporter/Exported files'

plugin-debugger

  1. You can now replace the terrain in your scene with this object (You will need to apply the exported material to the object after dragging it in)

Settings & Options

Resolution

Set the resolution of the terrain vertices by fractions.

  • Full
  • Half
  • Quarter (recommended)
  • Eighth (recommended)
  • Sixteenth

Terrain texture resolution

Resolution size of the terrain textures in pixels.

  • 512x512
  • 1024x1024
  • 2048x2048

Tiling of the texture

This affects the amount of tiles within the terrain, if set too low the texture will appear stretched, too high and you may begin to lose detail.

  • int value (Minimum of 1, no max value)

Limitations

  • As of now we currently only support the use of 4 or less textures in conjunction with this tool
  • Vertices need to be under 65k, lower the Resolution setting to avoid this preventing exportation
  • Currently we cannot export terrain with holes