기술 자료

Unity Engine

Unity Engine

sharedMaterial

The shared physics material of this collider.
읽는 시간 1분최근 업데이트: 20일 전

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.