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.

ProceduralMaterial.CacheProceduralProperty

CacheProceduralProperty(inputName: string, value: bool): void;
void CacheProceduralProperty(string inputName, bool value);
def CacheProceduralProperty(inputName as string, value as bool) as void

Description

Specifies if a named ProceduralProperty should be cached for efficient runtime tweaking.

Set this to true for all properties that you expect to be tweaking. It will take effect the next time the textures are rebuild, so call RebuildTextures after setting up these flags in order to prepare the cache. The fewer properties have caching enabled, the more efficient rebuilding the textures will be so consider carefully which properties are actually going to be changed. While modified properties are automatically cached for the next rebuild, this cache flag is persistent.

See Also: IsProceduralPropertyCached, ClearCache.