Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

ProceduralLoadingBehavior

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

ProceduralMaterial loading behavior.

Variables

DoNothingDo not generate the textures. RebuildTextures() or RebuildTexturesImmediately() must be called to generate the textures.
GenerateGenerate the textures when loading to favor application's size (default on supported platform).
BakeAndKeepBake the textures to speed up loading and keep the ProceduralMaterial data so that it can still be tweaked and regenerated later on.
BakeAndDiscardBake the textures to speed up loading and discard the ProceduralMaterial data (default on unsupported platform).
CacheGenerate the textures when loading and cache them to disk/flash to speed up subsequent game/application startups.
DoNothingAndCacheDo not generate the textures. RebuildTextures() or RebuildTexturesImmediately() must be called to generate the textures. After the textures have been generrated for the first time, they are cached to disk/flash to speed up subsequent game/application startups.