OnTerrainCreate
Usage
- No return behavior
Example Autogenerated
csharp
private void OnTerrainCreate( TerrainGenerator instance )
{
Puts( "OnTerrainCreate works!" );
}
Location
- TerrainGenerator::CreateTerrain(int heightmapResolution, int alphamapResolution)
csharp
public GameObject CreateTerrain(int heightmapResolution, int alphamapResolution)
{
Interface.CallHook("OnTerrainCreate", this);
Terrain component = Terrain.CreateTerrainGameObject(new TerrainData
{
baseMapResolution = TerrainGenerator.GetBaseMapRes(),
heightmapResolution = heightmapResolution,
alphamapResolution = alphamapResolution,
//---