Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

VisualElement.AddMeshModifier

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

Submission failed

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

Close

Cancel

Declaration

public void AddMeshModifier(MeshModificationCallback callback, bool recursive, int priority);

Parameters

Parameter Description
callback 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.

Description

Registers a modifier that runs after this element's mesh generation completes, before its vertex data is copied to the GPU.