Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

var sharedMaterial: PhysicsMaterial2D;
PhysicsMaterial2D sharedMaterial;
sharedMaterial as PhysicsMaterial2D

Description

The PhysicsMaterial2D that is applied to this collider.

See Also: PhysicsMaterial2D class.