Struct RaycastHit2D
Assembly: UnityEngine.dll
Syntax
public struct RaycastHit2D
Properties
|
Improve this Doc
View Source
centroid
Declaration
public Vector2 centroid { get; set; }
Property Value
|
Improve this Doc
View Source
collider
Declaration
public Collider2D collider { get; }
Property Value
|
Improve this Doc
View Source
distance
Declaration
public float distance { get; set; }
Property Value
|
Improve this Doc
View Source
fraction
Declaration
public float fraction { get; set; }
Property Value
|
Improve this Doc
View Source
normal
Declaration
public Vector2 normal { get; set; }
Property Value
|
Improve this Doc
View Source
point
Declaration
public Vector2 point { get; set; }
Property Value
|
Improve this Doc
View Source
rigidbody
Declaration
public Rigidbody2D rigidbody { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public Transform transform { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompareTo(RaycastHit2D)
Declaration
public int CompareTo(RaycastHit2D other)
Parameters
Returns
Operators
|
Improve this Doc
View Source
Implicit(RaycastHit2D to Boolean)
Declaration
public static implicit operator bool (RaycastHit2D hit)
Parameters
Returns
Extension Methods