Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddMeshModifier(MeshModificationCallback, bool, int)

Registers a modifier that runs after this element's mesh generation completes, before its vertex data is copied to the GPU.
Read time 1 minuteLast updated 5 days ago

Definition

public void AddMeshModifier(MeshModificationCallback callback, bool recursive = false, int priority = 0)

Parameters

Callback invoked on the main thread.

recursive

If
true
, the callback fires for this element plus every dirty descendant. Panel-wide post-processing is achieved by registering recursively on the panel root element.

priority

Dominant ordering axis for callback invocation. Lower values run first.