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
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public void AddMeshModifier(MeshModificationCallback callback, bool recursive = false, int priority = 0)
Parameters
Callback invoked on the main thread.
If , the callback fires for this element plus every dirty descendant. Panel-wide post-processing is achieved by registering recursively on the panel root element.
trueDominant ordering axis for callback invocation. Lower values run first.