文档

Unity Engine

Unity Engine

sharedMaterial

The shared physics material of this collider.
阅读时间1 分钟最后更新于 1 个月前

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 Collider.material instead.