Struct ImmersiveRaycastHit
A class which contains all potential either a 2D or a 3D RaycastHit.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Assembly: cs.temp.dll.dll
public struct ImmersiveRaycastHit
Constructors
Declaration
public ImmersiveRaycastHit(RaycastHit raycastHit3D)
Parameters
| Type |
Name |
Description |
| RaycastHit |
raycastHit3D |
|
Declaration
public ImmersiveRaycastHit(RaycastHit2D raycastHit2D)
Parameters
| Type |
Name |
Description |
| RaycastHit2D |
raycastHit2D |
|
Declaration
public ImmersiveRaycastHit(bool didHitUI)
Parameters
| Type |
Name |
Description |
| System.Boolean |
didHitUI |
|
Properties
Declaration
public readonly bool DidHit2DCollider { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public readonly bool DidHit3DCollider { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public readonly bool DidHitCollider { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public bool DidHitUI { readonly get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public readonly Transform HitTransform { get; }
Property Value
| Type |
Description |
| Transform |
|
Declaration
public RaycastHit2D? raycastHit2D { readonly get; }
Property Value
| Type |
Description |
| System.Nullable<RaycastHit2D> |
|
Declaration
public RaycastHit? raycastHit3D { readonly get; }
Property Value
| Type |
Description |
| System.Nullable<RaycastHit> |
|
Methods
Declaration
public GameObject GetHitGameObject()
Returns
| Type |
Description |
| GameObject |
|