Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. GameState
  5. loadTerrainHeightmap

loadTerrainHeightmap

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Try to load a 513×513 terrain image to replace terrain height values, with optional multiplier into terrain values

Parameters:

  • filename
    • A string value
  • scale Optional
    • A float value

Example:

1
obj.loadTerrainHeightmap(filename, scale = 1f)
Tags
Was this article helpful to you? Yes No

How can we help?