Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Collider2D.sharedMaterial

Switch to Manual
public var sharedMaterial: PhysicsMaterial2D;

Description

The PhysicsMaterial2D that is applied to this collider.

See Also: PhysicsMaterial2D class.