Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MeshCollider

A Collider that takes a Mesh asset and builds its collision shape based on it.
Read time 6 minutesLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
  • Inherits from: Collider
[RequireComponent(typeof(Transform))]public class MeshCollider : Collider

Remarks

Properties

Property

Description

convexUse a convex collider from the mesh.
cookingOptionsOptions used to enable or disable certain features in mesh cooking.
sharedMeshThe mesh object used for collision detection.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.