Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


sharedMaterial

The shared physics material of this collider.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public PhysicsMaterial sharedMaterial { get; set; }

Remarks

Modifying this material will change the surface properties of all colliders using the material. In most cases you want to modify _material instead.