Method Create
Create(NativeArray<float3>, NativeArray<int3>)
Create a mesh collider asset from a set of triangles.
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> vertices, NativeArray<int3> triangles)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<float3> | vertices | The vertices. |
NativeArray<int3> | triangles | The triangles. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |
Create(NativeArray<float3>, NativeArray<int3>, CollisionFilter)
Creates a new BlobAssetReference<Collider>
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> vertices, NativeArray<int3> triangles, CollisionFilter filter)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<float3> | vertices | The vertices. |
NativeArray<int3> | triangles | The triangles. |
CollisionFilter | filter | Specifies the filter. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |
Create(NativeArray<float3>, NativeArray<int3>, CollisionFilter, Material)
Creates a new BlobAssetReference<Collider>
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> vertices, NativeArray<int3> triangles, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<float3> | vertices | The vertices. |
NativeArray<int3> | triangles | The triangles. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |
Create(Mesh, CollisionFilter, Material)
Creates a new BlobAssetReference<Collider>
Declaration
[GenerateTestsForBurstCompatibility]
public static BlobAssetReference<Collider> Create(Mesh mesh, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The UnityEngine.Mesh. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |
Create(MeshData, CollisionFilter, Material)
Creates a new BlobAssetReference<Collider>
Declaration
[GenerateTestsForBurstCompatibility]
public static BlobAssetReference<Collider> Create(Mesh.MeshData meshData, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
Mesh.MeshData | meshData | The UnityEngine.Mesh.MeshData. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |
Create(MeshDataArray, CollisionFilter, Material)
Creates a new BlobAssetReference<Collider>
Declaration
[GenerateTestsForBurstCompatibility]
public static BlobAssetReference<Collider> Create(Mesh.MeshDataArray meshDataArray, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
Mesh.MeshDataArray | meshDataArray | The UnityEngine.Mesh.MeshDataArray. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |