AcquireReadOnlyMeshData
Gets a snapshot of Mesh data for read-only access in the Unity Editor.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
AcquireReadOnlyMeshData(Mesh)
Gets a snapshot of Mesh data for read-only access in the Unity Editor.
public static Mesh.MeshDataArray AcquireReadOnlyMeshData(Mesh mesh)
Parameters
The input mesh.
Returns
Type | Description |
|---|---|
| MeshDataArray | Returns a read-only snapshot of Mesh data. See Mesh.MeshDataArray and Mesh.MeshData. |
Remarks
This method retrieves the same data as Mesh.AcquireReadOnlyMeshData.
Mesh.AcquireReadOnlyMeshData only retrieves data from meshes where Mesh.isReadable is . In the Editor, all meshes are readable, even when Mesh.isReadable is set to . This Editor-only method skips the check, and retrieves data whether Mesh.isReadable is or .
truefalseisReadabletruefalseAcquireReadOnlyMeshData(Mesh[])
Gets a snapshot of Mesh data for read-only access in the Unity Editor.
public static Mesh.MeshDataArray AcquireReadOnlyMeshData(Mesh[] meshes)
Parameters
The input meshes.
Returns
Type | Description |
|---|---|
| MeshDataArray | Returns a read-only snapshot of Mesh data. See Mesh.MeshDataArray and Mesh.MeshData. |
Remarks
This method retrieves the same data as Mesh.AcquireReadOnlyMeshData.
Mesh.AcquireReadOnlyMeshData only retrieves data from meshes where Mesh.isReadable is . In the Editor, all meshes are readable, even when Mesh.isReadable is set to . This Editor-only method skips the check, and retrieves data whether Mesh.isReadable is or .
truefalseisReadabletruefalseAcquireReadOnlyMeshData(List<Mesh>)
Gets a snapshot of Mesh data for read-only access in the Unity Editor.
public static Mesh.MeshDataArray AcquireReadOnlyMeshData(List<Mesh> meshes)
Parameters
The input meshes.
Returns
Type | Description |
|---|---|
| MeshDataArray | Returns a read-only snapshot of Mesh data. See Mesh.MeshDataArray and Mesh.MeshData. |
Remarks
This method retrieves the same data as Mesh.AcquireReadOnlyMeshData.
Mesh.AcquireReadOnlyMeshData only retrieves data from meshes where Mesh.isReadable is . In the Editor, all meshes are readable, even when Mesh.isReadable is set to . This Editor-only method skips the check, and retrieves data whether Mesh.isReadable is or .
truefalseisReadabletruefalse