surfaceMaterial
The surface material for the shape comprising of many properties such as friction, bounciness, rolling resistance etc.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsShape.SurfaceMaterial surfaceMaterial
Remarks
This is exposed directly as a field rather than a property as it is extremely unlikely to ever change and causes usability issues as a property.