Version: 5.4
public PhysicMaterial material ;

Description

Материал, используемый коллайдером.

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public float dynFriction; public float statFriction; public Collider coll; void Start() { coll = GetComponent<Collider>(); coll.material.dynamicFriction = dynFriction; coll.material.staticFriction = statFriction; } }