Class MeshExtensions
UnityEngine.Mesh Based Extension Methods
Inheritance
System.Object
MeshExtensions
Namespace: GDX
Syntax
[VisualScriptingCompatible((short)2)]
public static class MeshExtensions
Methods
| Improve this Doc View SourceCalculateVolume(Mesh)
Determine the volume of a given mesh.
Declaration
public static float CalculateVolume(this Mesh targetMesh)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Mesh | targetMesh | The mesh to evaluate for its volume. |
Returns
Type | Description |
---|---|
System.Single | The meshes volume. |
Remarks
Based off of https://n-e-r-v-o-u-s.com/blog/?p=4415.
Exceptions
Type | Condition |
---|---|
UnsupportedRuntimeException | Not supported on DOTS Runtime. |