Documentation

Unity Engine

Download Unity

Unity Engine

writeParametersCallback

The optional callback that writes the per-element parameters of the pass.
Read time 1 minuteLast updated 6 days ago

Definition

public PostProcessingPass.WriteParametersDelegate writeParametersCallback { readonly get; set; }

Remarks

UI Toolkit calls it once per frame and filtered element, before rendering. Before it runs, each property of PostProcessingPass.parameterBindings receives its filter parameter. The writer is not valid after the call.
When the material has GPU instancing enabled and the shader declares the properties with Unity's instancing macros, UI Toolkit draws the pass of many filtered elements together, each element with its own values. Otherwise, it draws one element at a time with the same values.