Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Collider2D.sharedMaterial

Switch to Manual
public PhysicsMaterial2D sharedMaterial;

Description

The PhysicsMaterial2D that is applied to this collider.

See Also: PhysicsMaterial2D class.