[This is preliminary documentation and is subject to change.]

Loads and compiles a terrain component. (Editor Only)

Namespace: (Default Namespace)
Assembly: cai-nmbuild-u3d-editor (in cai-nmbuild-u3d-editor.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
[SerializableAttribute]
public sealed class TerrainCompiler : ScriptableObject, 
	IInputBuildProcessor, IPriorityItem
<SerializableAttribute> _
Public NotInheritable Class TerrainCompiler _
	Inherits ScriptableObject _
	Implements IInputBuildProcessor, IPriorityItem
[SerializableAttribute]
public ref class TerrainCompiler sealed : public ScriptableObject, 
	IInputBuildProcessor, IPriorityItem

Members

               
 All Members  Constructors   Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
TerrainCompiler()()()()
Initializes a new instance of the TerrainCompiler class
DuplicatesAllowed
Duplicates allowed. (Always true.)
includeTrees
True if tree's should also be triangulated.
Name
The name of the processor
Priority
The priority of the processor.
ProcessInput(InputBuildContext, InputBuildState)
Processes the context.
Resolution
The resolution factor to use when triangulating the terrain surface. [0.001f <= value <= 1]
terrainData
The asset to use for the compile.

Remarks

The compiler is associated with a TerrainData asset. If the scene contains a Terrain component that references the TerrainData it will be loaded and compiled. Only one Terrain will ever be loaded. (Mutliple Terrain components referencing the same TerrainData is not supported.)

Inheritance Hierarchy

System..::..Object
  Object
    ScriptableObject
      (Default Namespace)..::..TerrainCompiler

See Also