Show / Hide Table of Contents

Struct RaycastHit2D

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public struct RaycastHit2D

Properties

| Improve this Doc View Source

centroid

Declaration
public Vector2 centroid { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

collider

Declaration
public Collider2D collider { get; }
Property Value
Type Description
Collider2D
| Improve this Doc View Source

distance

Declaration
public float distance { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

fraction

Declaration
public float fraction { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

normal

Declaration
public Vector2 normal { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

point

Declaration
public Vector2 point { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

rigidbody

Declaration
public Rigidbody2D rigidbody { get; }
Property Value
Type Description
Rigidbody2D
| Improve this Doc View Source

transform

Declaration
public Transform transform { get; }
Property Value
Type Description
Transform

Methods

| Improve this Doc View Source

CompareTo(RaycastHit2D)

Declaration
public int CompareTo(RaycastHit2D other)
Parameters
Type Name Description
RaycastHit2D other
Returns
Type Description
Int32

Operators

| Improve this Doc View Source

Implicit(RaycastHit2D to Boolean)

Declaration
public static implicit operator bool (RaycastHit2D hit)
Parameters
Type Name Description
RaycastHit2D hit
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)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX