# material

> The material used by the collider.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public PhysicsMaterial material { get; set; }
```

### Remarks

If material is shared by colliders, it will duplicate the material and assign it to the collider.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Expose properties in the inspector for easy adjustment.
    float dynFriction;
    float statFriction;

    Collider coll;

    void Start()
    {
        coll = GetComponent<Collider>();

        coll.material.dynamicFriction = dynFriction;
        coll.material.staticFriction = statFriction;
    }
}
```
