UGoogleVRPointerInputComponent

GoogleVRPointerInputComponent is used to interact with Actors and Widgets by using a 3D pointer.

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UActorComponent

UGoogleVRPointerInputComponent

References

Module

GoogleVRController

Header

/Engine/Plugins/Runtime/GoogleVR/GoogleVRController/Source/GoogleVRController/Classes/GoogleVRPointerInputComponent.h

Include

#include "GoogleVRPointerInputComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(ClassGroup=(GoogleVRController), Meta=(BlueprintSpawnableComponent))
class UGoogleVRPointerInputComponent : public UActorComponent

Remarks

GoogleVRPointerInputComponent is used to interact with Actors and Widgets by using a 3D pointer. The pointer can be a cardboard reticle, or a daydream controller.

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

float

 

FarClippingDistance

The maximum distance an object can be from the start of the pointer for the pointer to hit it.

Protected variable

FHitResult

 

LatestHitResult

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

float

 

NearClippingDistance

The minimum distance an object needs to be from the camera for the pointer to hit it.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerClickActorEvent

Event that occurs once when the pointer is clicked.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerClickComponentEvent

Event that occurs once when the pointer is clicked.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerEnterActorEvent

Event that occurs when the pointer enters an actor.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerEnterComponentEvent

Event that occurs when the pointer enters a component.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputE...

 

OnPointerExitActorEvent

Event that occurs when the pointer exits an actor.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputE...

 

OnPointerExitComponentEvent

Event that occurs when the pointer exits a component.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerHoverActorEvent

Event that occurs once when the pointer is hovering over an actor.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerHoverComponentEvent

Event that occurs once when the pointer is hovering over a component.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerPressedEvent

Event that occurs once when the pointer initiates a click.

Public variable UProperty Category BlueprintAssignable

FGoogleVRInputD...

 

OnPointerReleasedEvent

Event that occurs once when the pointer ends a click.

Protected variable

TScriptInterfac...

 

Pointer

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

bool

 

UseControllerClick

Determines if pointer clicks will occur from controller clicks.

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

bool

 

UseTouchClick

Determines if pointer clicks will occur from touching the screen.

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

UGoogleVRWidget...

 

WidgetInteraction

WidgetInteractionComponent used to integrate pointer input with UMG widgets.

Constructors

Name Description

Public function

UGoogleVRPointerInputComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const UFunction BlueprintCallable, Category, Meta

AActor *

 

GetHitActor()

The actor that is being pointed at.

Public function Const UFunction BlueprintCallable, Category, Meta

UPrimitiveCo...

 

GetHitComponent()

The component that the actor being pointed at.

Public function Const UFunction BlueprintCallable, Category, Meta

FVector

 

GetIntersectionLocation()

The world location where the pointer intersected with the hit actor.

Public function Const UFunction BlueprintCallable, Category, Meta

FHitResult

 

GetLatestHitResult()

Get the result of the latest hit detection.

Public function Const UFunction BlueprintCallable, Category, Meta

TScriptInter...

 

GetPointer()

Get the Pointer being used for this input component.

Public function Const UFunction BlueprintCallable, Category, Meta

bool

 

IsBlockingHit()

Returns true if there was a blocking hit.

Protected function

FHitResult

 

PerformHitDetection()

Override if you desire to change the hit detection behavior.

Protected function Virtual

void

 

PostHitDetection()

Override if you desire to do any additional processing of the hits.

Public function UFunction BlueprintCallable, Category, Meta

void

 

SetPointer

Set the Pointer to use for this input component.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

BeginPlay()

Begins Play for the component.

Public function Virtual

void

 

OnRegister()

Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    ELevelTick TickType,
    FActorComponentTickFunction* T...
)

Function called every frame on this ActorComponent.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss