MarkDynamic()
Optimize mesh for frequent updates.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void MarkDynamic()
Remarks
Call this before assigning vertices to get better performance when continually updating the Mesh. Internally, this makes the Mesh use "dynamic buffers" in the underlying graphics API, which are more efficient when Mesh data changes often.