Format
typescript
Mesh.MarkDynamic(dynamic)class: Mesh
Description
Marks the mesh as dynamic.
A dynamic mesh is a mesh that may be frequently modified or updated at runtime, such as for real-time deformation or collision detection.
Parameters
| param_name | type | description |
|---|---|---|
| dynamic | boolean | Whether the mesh is dynamic. |
Return
| type | description |
|---|---|
void |
Code Example
typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.MarkDynamic(true);