ProceduralMaterial.CacheProceduralProperty 缓存程序属性

function CacheProceduralProperty (inputName : String, value : boolean) : void


Specifies if a named Procedural property 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.


参见:IsProceduralPropertyCached, ClearCache.


Page last updated: 2011-9-13