The Collider attached to this GameObject (Read Only). (Null if there is none attached).
Obsolete. Use GetComponent<Collider>() instead.
#pragma strict public class Example extends MonoBehaviour { function Start() { GetComponent.<Collider>().material.dynamicFriction = 1f; } }
using UnityEngine;
public class Example : MonoBehaviour { void Start() { GetComponent<Collider>().material.dynamicFriction = 1f; } }
Did you find this page useful? Please give it a rating: