Search Results for

    Show / Hide Table of Contents

    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()
    Namespace: Immersive.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public struct ImmersiveRaycastHit

    Constructors

    ImmersiveRaycastHit(RaycastHit)

    Declaration
    public ImmersiveRaycastHit(RaycastHit raycastHit3D)
    Parameters
    Type Name Description
    RaycastHit raycastHit3D

    ImmersiveRaycastHit(RaycastHit2D)

    Declaration
    public ImmersiveRaycastHit(RaycastHit2D raycastHit2D)
    Parameters
    Type Name Description
    RaycastHit2D raycastHit2D

    ImmersiveRaycastHit(Boolean)

    Declaration
    public ImmersiveRaycastHit(bool didHitUI)
    Parameters
    Type Name Description
    System.Boolean didHitUI

    Properties

    DidHit2DCollider

    Declaration
    public readonly bool DidHit2DCollider { get; }
    Property Value
    Type Description
    System.Boolean

    DidHit3DCollider

    Declaration
    public readonly bool DidHit3DCollider { get; }
    Property Value
    Type Description
    System.Boolean

    DidHitCollider

    Declaration
    public readonly bool DidHitCollider { get; }
    Property Value
    Type Description
    System.Boolean

    DidHitUI

    Declaration
    public bool DidHitUI { readonly get; }
    Property Value
    Type Description
    System.Boolean

    HitTransform

    Declaration
    public readonly Transform HitTransform { get; }
    Property Value
    Type Description
    Transform

    raycastHit2D

    Declaration
    public RaycastHit2D? raycastHit2D { readonly get; }
    Property Value
    Type Description
    System.Nullable<RaycastHit2D>

    raycastHit3D

    Declaration
    public RaycastHit? raycastHit3D { readonly get; }
    Property Value
    Type Description
    System.Nullable<RaycastHit>

    Methods

    GetHitGameObject()

    Declaration
    public GameObject GetHitGameObject()
    Returns
    Type Description
    GameObject
    In This Article
    Back to top Immersive Interactive