文档

Unity Engine

Unity Engine

sharedMaterial

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

Definition

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.