Class: Terrain
Lua
C++
Edit

Terrain::GetMaterialWeight

This method gets the weighting of a material at the specified terrain point.

Syntax

Parameter Description
x, y terrain coordinate
material material to get the weight of

Returns

Returns the material weight if it is in use at the specified terrain point, otherwise 0 is returned.

Copyright © 2024 Ultra Software.
All rights reserved.