Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TerrainData.RefreshPrototypes

RefreshPrototypes(): void;
void RefreshPrototypes();
def RefreshPrototypes() as void

Description

Reloads all the values of the available prototypes (ie, detail mesh assets) in the TerrainData Object.

This can be used in editor scripts to update the terrain when the prototype assets change, much like the Terrain > Refresh Tree and Detail Prototypes menu command.