Table of Contents

Class PropHeightStamp

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class PropHeightStamp : MonoBehaviour
Inheritance
PropHeightStamp
Inherited Members
Extension Methods

Constructors

PropHeightStamp()

public PropHeightStamp()

Fields

blurRange

public int blurRange

Field Value

int

mask

public LayerMask mask

Field Value

LayerMask

offset

public float offset

Field Value

float

Methods

CreateTexture(float[,])

public Texture2D CreateTexture(float[,] heights)

Parameters

heights float[,]

Returns

Texture2D

Execute()

public void Execute()

GetBlurredHeight(float[,], float, int, int, int, bool[,])

public float GetBlurredHeight(float[,] heights, float heightBefore, int terrainX, int terrainY, int blurRange, bool[,] wasEdited)

Parameters

heights float[,]
heightBefore float
terrainX int
terrainY int
blurRange int
wasEdited bool[,]

Returns

float

GetHeight(Terrain, Vector2Int)

public float GetHeight(Terrain terrain, Vector2Int vector2)

Parameters

terrain Terrain
vector2 Vector2Int

Returns

float

GetMaxPos()

public Vector3 GetMaxPos()

Returns

Vector3

GetMinPos()

public Vector3 GetMinPos()

Returns

Vector3

GetTerrain()

public Terrain GetTerrain()

Returns

Terrain

GetTerrainChunk(Terrain)

public TerrainChunk GetTerrainChunk(Terrain terrain)

Parameters

terrain Terrain

Returns

TerrainChunk

OnDrawGizmosSelected()

public void OnDrawGizmosSelected()

PropIsGrounded(float, Ray, Collider)

public bool PropIsGrounded(float terrainHeight, Ray ray, Collider col)

Parameters

terrainHeight float
ray Ray
col Collider

Returns

bool

ResetWorld()

public void ResetWorld()

TerrainIDToWorldPos(Terrain, Vector2Int)

public Vector3 TerrainIDToWorldPos(Terrain terrain, Vector2Int terrainID)

Parameters

terrain Terrain
terrainID Vector2Int

Returns

Vector3

WorldPosToTerrainID(Terrain, Vector3)

public Vector2Int WorldPosToTerrainID(Terrain terrain, Vector3 min)

Parameters

terrain Terrain
min Vector3

Returns

Vector2Int