TerrainBlueprint

Package: Libraries.Interface.Controls.Scenes.Blueprints · Inherits from: Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint, Libraries.Language.Object

The TerrainBlueprint is the palette's entry for a terrain. Adding it to a scene makes a new, flat terrain at the origin, saved at once into the scene's project. By default it is 2 by 2 regions of 64 samples, 1 unit apart, so 128 by 128 units centered on the origin. A new terrain has no painting and no materials.

Actions

GetPaletteIcon()

This action returns the texture to be used as an icon in a palette

Returns

Libraries.Game.Graphics.TextureRegion: A texture for an icon for a terrain

GetRegionSize()

This action returns how many samples are along each side of a new terrain's regions.

Returns

integer: The region size

GetRegionsAcross()

This action returns how many regions a new terrain has along x and along z.

Returns

integer: The number of regions across

GetVertexSpacing()

This action returns how far apart a new terrain's samples are, in world units.

Returns

number: The spacing

SetPaletteIcon(Libraries.Game.Graphics.TextureRegion paletteIcon)

This action sets the texture to be used as an icon in a palette

Parameters

SetRegionSize(integer size)

This action sets how many samples are along each side of a new terrain's regions: 64, 128, 256, 512, 1024 or 2048.

Parameters

  • size integer: The region size

SetRegionsAcross(integer count)

This action sets how many regions a new terrain has along x and along z.

Parameters

  • count integer: The number of regions across, 1 or more

SetVertexSpacing(number spacing)

This action sets how far apart a new terrain's samples are, in world units.

Parameters

  • spacing number: The spacing

Inherited Actions

20 actions from Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint
3 actions from Libraries.Language.Object