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.
|
Handle the playing of panoramic experiences. More...
#include <PanoramicDirector.h>
Public Member Functions | |
DECLARE_DYNAMIC_MULTICAST_DELEGATE (FOnExperienceStarted) | |
Called when the experience has started. More... | |
DECLARE_DYNAMIC_MULTICAST_DELEGATE (FOnExperienceTerminated) | |
Called when the experience has terminated. More... | |
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnStageChanged, class UPanoramicStage *, NewStage) | |
Called when the stage has changed. More... | |
void | End () |
Exits from panoramic mode. More... | |
class UPanoramicStage * | GetCurrentStage () const |
Returns the current stage. More... | |
bool | IsPlaying () const |
Returns true if the experience is playing, false otherwise. More... | |
void | MoveOrExit (TSoftObjectPtr< class UPanoramicStage > InNextStage) |
Move to the given stage or exit from the experience if InNextStage is null. More... | |
void | MoveThrough (const struct FPanoramicStageNavigation &Navigation) |
Move through the given stage navigation. More... | |
void | Play (class UPanoramicExperience *Experience, float StartingYawRotation=0.f) |
Enters into panoramic mode playing the given experience. More... | |
Public Attributes | |
UTexture2D * | BackgroundTexture |
An optional background texture used for the crossfading. More... | |
ESphereBlendMode | BlendMode |
The blend mode of the sphere (used just when the sphere is spawned by the director) More... | |
class UCurveFloat * | CutOffAlphaCurve |
An optional UCurveFloat used to customize the alpha value of the cutoff when we enter/exit into the panoramic experience. More... | |
class UCurveFloat * | CutOffCurve |
An optional UCurveFloat used to customize the cutoff transition. More... | |
float | CutOffDuration |
The duration (in seconds) of the cutoff effect. More... | |
bool | CutOffOnEnterAndExit |
Defines if the cutoff effect is on when we enter/exit into/from the experience. More... | |
bool | CutOffOnTransition |
Defines if the cutoff effect is on when we change stage. More... | |
UTexture2D * | CutOffTexture |
An optional texture used to customize the cutoff transition. More... | |
class UPanoramicExperience * | Experience |
An optional experience to play automatically when the game begins. More... | |
class UCurveFloat * | FadeCurve |
An optional UCurveFloat used to customize the fade transition. More... | |
float | FadeDuration |
The duration (in seconds) of the fading effect. More... | |
bool | FadeOnEnterAndExit |
Defines if the fade effect is on when we enter/exit into/from the experience. More... | |
bool | FadeOnTransition |
Defines if the fade effect is on when we change stage. More... | |
class UPanoramicInteractionComponent * | InteractionComponent |
The component used to perfom interactions with the stage navigations. More... | |
class UMediaPlayer * | MediaPlayer |
An optional UMediaPlayer used to play media sources; it's mandatory only if the experience has some media sources to play. More... | |
class UMediaSoundComponent * | MediaSoundComponent |
A sound component to play sounds. More... | |
class UMediaTexture * | MediaTexture |
An optional UMediaTexture used to play media sources; it's mandatory only if the experience has some media sources to play. More... | |
FOnExperienceStarted | OnExperienceStarted |
Called when the experience has started. More... | |
FOnExperienceTerminated | OnExperienceTerminated |
Called when the experience has terminated. More... | |
FOnStageChanged | OnStageChanged |
Called when the stage has changed. More... | |
class APanoramicSphere * | PanoramicSphere |
An optional sphere used for rendering, if null a default one will be created automatically. More... | |
Protected Member Functions | |
virtual void | BeginPlay () override |
Override AActor::BeginPlay. More... | |
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
Override AActor::EndPlay. More... | |
virtual void | Tick (float DeltaSeconds) override |
Override AActor::Tick. More... | |
Handle the playing of panoramic experiences.
|
overrideprotectedvirtual |
Override AActor::BeginPlay.
APanoramicDirector::DECLARE_DYNAMIC_MULTICAST_DELEGATE | ( | FOnExperienceStarted | ) |
Called when the experience has started.
APanoramicDirector::DECLARE_DYNAMIC_MULTICAST_DELEGATE | ( | FOnExperienceTerminated | ) |
Called when the experience has terminated.
APanoramicDirector::DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnStageChanged | , |
class UPanoramicStage * | , | ||
NewStage | |||
) |
Called when the stage has changed.
void APanoramicDirector::End | ( | ) |
Exits from panoramic mode.
|
overrideprotectedvirtual |
Override AActor::EndPlay.
class UPanoramicStage * APanoramicDirector::GetCurrentStage | ( | ) | const |
Returns the current stage.
bool APanoramicDirector::IsPlaying | ( | ) | const |
Returns true if the experience is playing, false otherwise.
void APanoramicDirector::MoveOrExit | ( | TSoftObjectPtr< class UPanoramicStage > | InNextStage | ) |
Move to the given stage or exit from the experience if InNextStage is null.
void APanoramicDirector::MoveThrough | ( | const struct FPanoramicStageNavigation & | Navigation | ) |
Move through the given stage navigation.
void APanoramicDirector::Play | ( | class UPanoramicExperience * | Experience, |
float | StartingYawRotation = 0.f |
||
) |
Enters into panoramic mode playing the given experience.
|
overrideprotectedvirtual |
Override AActor::Tick.
UTexture2D* APanoramicDirector::BackgroundTexture |
An optional background texture used for the crossfading.
ESphereBlendMode APanoramicDirector::BlendMode |
The blend mode of the sphere (used just when the sphere is spawned by the director)
class UCurveFloat* APanoramicDirector::CutOffAlphaCurve |
An optional UCurveFloat used to customize the alpha value of the cutoff when we enter/exit into the panoramic experience.
Values should be in the range [0,1]. If not set, the alpha value for the cutoff part is fully transparent.
class UCurveFloat* APanoramicDirector::CutOffCurve |
An optional UCurveFloat used to customize the cutoff transition.
Values should be in the range [0,1].
float APanoramicDirector::CutOffDuration |
The duration (in seconds) of the cutoff effect.
Put to zero to disable it.
bool APanoramicDirector::CutOffOnEnterAndExit |
Defines if the cutoff effect is on when we enter/exit into/from the experience.
bool APanoramicDirector::CutOffOnTransition |
Defines if the cutoff effect is on when we change stage.
UTexture2D* APanoramicDirector::CutOffTexture |
An optional texture used to customize the cutoff transition.
class UPanoramicExperience* APanoramicDirector::Experience |
An optional experience to play automatically when the game begins.
Note: you can play an experience whenever you want through the Play method.
class UCurveFloat* APanoramicDirector::FadeCurve |
An optional UCurveFloat used to customize the fade transition.
Values should be in the range [0,1].
float APanoramicDirector::FadeDuration |
The duration (in seconds) of the fading effect.
Put to zero to disable it.
bool APanoramicDirector::FadeOnEnterAndExit |
Defines if the fade effect is on when we enter/exit into/from the experience.
bool APanoramicDirector::FadeOnTransition |
Defines if the fade effect is on when we change stage.
class UPanoramicInteractionComponent* APanoramicDirector::InteractionComponent |
The component used to perfom interactions with the stage navigations.
class UMediaPlayer* APanoramicDirector::MediaPlayer |
An optional UMediaPlayer used to play media sources; it's mandatory only if the experience has some media sources to play.
class UMediaSoundComponent* APanoramicDirector::MediaSoundComponent |
A sound component to play sounds.
class UMediaTexture* APanoramicDirector::MediaTexture |
An optional UMediaTexture used to play media sources; it's mandatory only if the experience has some media sources to play.
FOnExperienceStarted APanoramicDirector::OnExperienceStarted |
Called when the experience has started.
FOnExperienceTerminated APanoramicDirector::OnExperienceTerminated |
Called when the experience has terminated.
FOnStageChanged APanoramicDirector::OnStageChanged |
Called when the stage has changed.
class APanoramicSphere* APanoramicDirector::PanoramicSphere |
An optional sphere used for rendering, if null a default one will be created automatically.