Show / Hide Table of Contents

Class Collider

Inheritance
Object
Object
Component
Collider
BoxCollider
CapsuleCollider
CharacterController
MeshCollider
SphereCollider
TerrainCollider
WheelCollider
Inherited Members
Component.transform
Component.gameObject
Component.GetComponent(Type)
Component.GetComponent<T>()
Component.GetComponent(String)
Component.GetComponentInChildren(Type, Boolean)
Component.GetComponentInChildren(Type)
Component.GetComponentInChildren<T>(Boolean)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren(Type, Boolean)
Component.GetComponentsInChildren(Type)
Component.GetComponentsInChildren<T>(Boolean)
Component.GetComponentsInChildren<T>(Boolean, List<T>)
Component.GetComponentsInChildren<T>()
Component.GetComponentsInChildren<T>(List<T>)
Component.GetComponentInParent(Type)
Component.GetComponentInParent<T>()
Component.GetComponentsInParent(Type, Boolean)
Component.GetComponentsInParent(Type)
Component.GetComponentsInParent<T>(Boolean)
Component.GetComponentsInParent<T>(Boolean, List<T>)
Component.GetComponentsInParent<T>()
Component.GetComponents(Type)
Component.GetComponents(Type, List<Component>)
Component.GetComponents<T>(List<T>)
Component.tag
Component.GetComponents<T>()
Component.CompareTag(String)
Component.SendMessageUpwards(String, Object, SendMessageOptions)
Component.SendMessageUpwards(String, Object)
Component.SendMessageUpwards(String)
Component.SendMessageUpwards(String, SendMessageOptions)
Component.SendMessage(String, Object)
Component.SendMessage(String)
Component.SendMessage(String, Object, SendMessageOptions)
Component.SendMessage(String, SendMessageOptions)
Component.BroadcastMessage(String, Object, SendMessageOptions)
Component.BroadcastMessage(String, Object)
Component.BroadcastMessage(String)
Component.BroadcastMessage(String, SendMessageOptions)
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public class Collider : Component

Properties

attachedRigidbody

Declaration
public Rigidbody attachedRigidbody { get; }
Property Value
Type Description
Rigidbody

bounds

Declaration
public Bounds bounds { get; }
Property Value
Type Description
Bounds

contactOffset

Declaration
public float contactOffset { get; set; }
Property Value
Type Description
Single

enabled

Declaration
public bool enabled { get; set; }
Property Value
Type Description
Boolean

isTrigger

Declaration
public bool isTrigger { get; set; }
Property Value
Type Description
Boolean

material

Declaration
public PhysicMaterial material { get; set; }
Property Value
Type Description
PhysicMaterial

sharedMaterial

Declaration
public PhysicMaterial sharedMaterial { get; set; }
Property Value
Type Description
PhysicMaterial

Methods

ClosestPoint(Vector3)

Declaration
public Vector3 ClosestPoint(Vector3 position)
Parameters
Type Name Description
Vector3 position
Returns
Type Description
Vector3
| Improve this Doc View Source

ClosestPointOnBounds(Vector3)

Declaration
public Vector3 ClosestPointOnBounds(Vector3 position)
Parameters
Type Name Description
Vector3 position
Returns
Type Description
Vector3
| Improve this Doc View Source

Raycast(Ray, out RaycastHit, Single)

Declaration
public bool Raycast(Ray ray, out RaycastHit hitInfo, float maxDistance)
Parameters
Type Name Description
Ray ray
RaycastHit hitInfo
Single maxDistance
Returns
Type Description
Boolean

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX