UE5 360 Stereo Panoramic Player 1.2.5
Create interactive Media Players and Virtual Tours for mono and stereo 360 panoramic images and videos in Unreal Engine 5.
|
The component used to perfom interactions with the stage navigations. More...
#include <PanoramicInteractionComponent.h>
Public Member Functions | |
void | OnPanoramicModeEntered () |
Called by the director. More... | |
void | OnPanoramicModeExited () |
Called by the director. More... | |
void | PushCustomWorldTargetDirection (FVector WorldTargetDirection) |
Add a custom target direction (should be normalized and in world space). More... | |
virtual void | TickComponent (float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override |
Override UActorComponent::TickComponent. More... | |
void | TryToInteractManually () |
Try to interact with stage navigations manually and instantanially. More... | |
Public Attributes | |
bool | CameraForwardAsTargetDirection |
Use the camera forward as target direction. More... | |
float | FocusDuration |
How long (in seconds) the user should focus a target to enter on the next stage. More... | |
FName | InputActionName |
The input action name used to trigger an interaction. More... | |
bool | InteractionAutoMode |
Flag to enable the auto interaction mode. More... | |
bool | InteractionInputActionMode |
Flag to enable the input-action interaction mode. More... | |
bool | MouseCursorAsTargetDirection |
Use the mouse cursor as target direction. More... | |
TSubclassOf< class UUserWidget > | ViewfinderClass |
An optional UMG widget used to customize the viewfinder. More... | |
The component used to perfom interactions with the stage navigations.
void UPanoramicInteractionComponent::OnPanoramicModeEntered | ( | ) |
Called by the director.
Don't call it manually.
void UPanoramicInteractionComponent::OnPanoramicModeExited | ( | ) |
Called by the director.
Don't call it manually.
void UPanoramicInteractionComponent::PushCustomWorldTargetDirection | ( | FVector | WorldTargetDirection | ) |
Add a custom target direction (should be normalized and in world space).
It will be used to interact with stage navigations. The direction will be used automatically but you can call TryToInteractManually to try to interact (to perform a transition if it's possible) manually and instantanially. Collected custom target directions are cleared at each tick.
|
overridevirtual |
Override UActorComponent::TickComponent.
void UPanoramicInteractionComponent::TryToInteractManually | ( | ) |
Try to interact with stage navigations manually and instantanially.
bool UPanoramicInteractionComponent::CameraForwardAsTargetDirection |
Use the camera forward as target direction.
Target Directions are used to interact with stage navigations.
float UPanoramicInteractionComponent::FocusDuration |
How long (in seconds) the user should focus a target to enter on the next stage.
Put to zero to disable this mechanism. It works if the auto interaction mode is on (
FName UPanoramicInteractionComponent::InputActionName |
bool UPanoramicInteractionComponent::InteractionAutoMode |
Flag to enable the auto interaction mode.
If true, when the user focus a navigation target, we move on the next stage automatically (
bool UPanoramicInteractionComponent::InteractionInputActionMode |
Flag to enable the input-action interaction mode.
If true, we move on the target stage (if any) when the choosen input action is triggered (
bool UPanoramicInteractionComponent::MouseCursorAsTargetDirection |
Use the mouse cursor as target direction.
Target Directions are used to interact with stage navigations.
TSubclassOf<class UUserWidget> UPanoramicInteractionComponent::ViewfinderClass |
An optional UMG widget used to customize the viewfinder.
Visible when the user is focusing a stage navigation and the auto interaction mode is on (