![]() |
A Demo Project for the UnrealEngineSDK
|
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = (VRExpansionPlugin), HideCategories = ("Stereoscopic Properties", Collision)) More...
#include <VRStereoWidgetComponent.h>
Public Member Functions | |
UVRStereoWidgetRenderComponent (const FObjectInitializer &ObjectInitializer) | |
virtual void | BeginPlay () override |
virtual void | DestroyComponent (bool bPromoteChildren) override |
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
void | InitWidget () |
void | OnLevelRemovedFromWorld (ULevel *InLevel, UWorld *InWorld) |
void | ReleaseResources () |
void | RenderWidget (float DeltaTime) |
void | SetWidgetAndInit (TSubclassOf< UUserWidget > NewWidgetClass) |
UFUNCTION(BlueprintCallable, Category = "WidgetSettings") | |
virtual void | TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override |
Public Attributes | |
bool | bDrawAtDesiredSize |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
bool | bDrawWithoutStereo |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
bool | bUseGammaCorrection |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
float | DrawCounter |
float | DrawRate |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
UTextureRenderTarget2D * | RenderTarget |
UPROPERTY(BlueprintReadOnly, Transient, DuplicateTransient, Category = "WidgetSettings") | |
FLinearColor | RenderTargetClearColor |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
TSharedPtr< SWidget > | SlateWidget |
TSharedPtr< class SVirtualWindow > | SlateWindow |
UUserWidget * | Widget |
UPROPERTY(Transient, DuplicateTransient) | |
TSubclassOf< UUserWidget > | WidgetClass |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
class FWidgetRenderer * | WidgetRenderer |
float | WidgetRenderGamma |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
float | WidgetRenderScale |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true)) | |
Private Member Functions | |
GENERATED_BODY () | |
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = (VRExpansionPlugin), HideCategories = ("Stereoscopic Properties", Collision))
A stereo component that displays a widget instead of a texture.
Definition at line 28 of file VRStereoWidgetComponent.h.
UVRStereoWidgetRenderComponent::UVRStereoWidgetRenderComponent | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 46 of file VRStereoWidgetComponent.cpp.
|
overridevirtual |
Definition at line 101 of file VRStereoWidgetComponent.cpp.
|
overridevirtual |
Definition at line 163 of file VRStereoWidgetComponent.cpp.
|
overridevirtual |
Definition at line 121 of file VRStereoWidgetComponent.cpp.
|
private |
void UVRStereoWidgetRenderComponent::InitWidget | ( | ) |
Definition at line 187 of file VRStereoWidgetComponent.cpp.
void UVRStereoWidgetRenderComponent::OnLevelRemovedFromWorld | ( | ULevel * | InLevel, |
UWorld * | InWorld ) |
Definition at line 176 of file VRStereoWidgetComponent.cpp.
void UVRStereoWidgetRenderComponent::ReleaseResources | ( | ) |
CanReceiveHardwareInput() &&
Definition at line 128 of file VRStereoWidgetComponent.cpp.
void UVRStereoWidgetRenderComponent::RenderWidget | ( | float | DeltaTime | ) |
Definition at line 276 of file VRStereoWidgetComponent.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "WidgetSettings")
Definition at line 170 of file VRStereoWidgetComponent.cpp.
|
overridevirtual |
Definition at line 63 of file VRStereoWidgetComponent.cpp.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
If true then we sample the requested size of the widget and reset the texture to be that size
Definition at line 57 of file VRStereoWidgetComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
If true we will draw to the render target even without active stereo layers and skip the stereo tick
Definition at line 97 of file VRStereoWidgetComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
Automatically correct for gamma
Definition at line 81 of file VRStereoWidgetComponent.h.
float UVRStereoWidgetRenderComponent::DrawCounter |
Definition at line 108 of file VRStereoWidgetComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
Rate (HTZ) we should draw the texture at
Definition at line 105 of file VRStereoWidgetComponent.h.
|
BlueprintReadOnlyTransientDuplicateTransient |
UPROPERTY(BlueprintReadOnly, Transient, DuplicateTransient, Category = "WidgetSettings")
The render target being display
Definition at line 122 of file VRStereoWidgetComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
The desired clear color of the render target
Definition at line 89 of file VRStereoWidgetComponent.h.
TSharedPtr<SWidget> UVRStereoWidgetRenderComponent::SlateWidget |
The Slate widget to be displayed by this component. Only one of either Widget or SlateWidget can be used
Definition at line 111 of file VRStereoWidgetComponent.h.
TSharedPtr<class SVirtualWindow> UVRStereoWidgetRenderComponent::SlateWindow |
The slate window that contains the user widget content
Definition at line 125 of file VRStereoWidgetComponent.h.
|
DuplicateTransientTransient |
UPROPERTY(Transient, DuplicateTransient)
The User Widget object displayed and managed by this component
Definition at line 49 of file VRStereoWidgetComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
The class of User Widget to create and display an instance of
Definition at line 41 of file VRStereoWidgetComponent.h.
class FWidgetRenderer* UVRStereoWidgetRenderComponent::WidgetRenderer |
Definition at line 113 of file VRStereoWidgetComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
The desired render gamma of the widget
Definition at line 73 of file VRStereoWidgetComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "WidgetSettings", meta = (ExposeOnSpawn = true))
The desired render scale of the widget
Definition at line 65 of file VRStereoWidgetComponent.h.