Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

Collider2D.sharedMaterial

public PhysicsMaterial2D sharedMaterial;

Description

The [[PhysicsMaterial2D that is applied to this collider.

See Also: PhysicsMaterial2D class.