Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UStereoLayerComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/StereoLayerComponent.h |
| Include | #include "Components/StereoLayerComponent.h" |
Syntax
class UStereoLayerComponent : public USceneComponent
Remarks
A geometry layer within the stereo rendered viewport.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bLiveTexture | True if the stereo layer texture needs to update itself every frame(scene capture, video, etc.) | |
| uint32: 1 | bNoAlphaChannel | True if the texture should not use its own alpha channel (1.0 will be substituted) | |
| uint32: 1 | bQuadPreserveTextureRatio | True if the quad should internally set it's Y value based on the set texture's dimensions | |
| uint32: 1 | bSupportsDepth | True if the stereo layer needs to support depth intersections with the scene geometry, if available on the platform | |
| uint32 | LayerId | IStereoLayer id, 0 is unassigned | |
| TObjectPtr< class UTexture > | LeftTexture | Texture displayed on the stereo layer for left eye, if stereoscopic textures are supported on the platform and by the layer shape | |
| int32 | Priority | Render priority among all stereo layers, higher priority render on top of lower priority | |
| FVector2D | QuadSize | Size of the rendered stereo layer quad | |
| TObjectPtr< UStereoLayerShape > | Shape | Specifies which shape of layer it is. | |
| TEnumAsByte< enum EStereoLayerType > | StereoLayerType | Specifies how and where the quad is rendered to the screen | |
| TObjectPtr< class UTexture > | Texture | Texture displayed on the stereo layer (if stereoscopic textures are supported on the platform and more than one texture is provided, this will be the right eye) | |
| FBox2D | UVRect | UV coordinates mapped to the quad face |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UStereoLayerComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UTexture * | |||
| int32 | GetPriority () |
||
| FVector2D | GetQuadSize () |
||
| UTexture * | GetTexture () |
||
| FBox2D | GetUVRect () |
||
| void | |||
| void | Manually mark the stereo layer texture for updating. | ||
| void | SetEquirectProps
(
FEquirectProps InEquirectProps |
Set Equirect layer properties: UVRect, Scale, Bias and Radius. | |
| void | SetLeftTexture
(
UTexture* InTexture |
Change the texture displayed on the stereo layer for left eye, if stereoscopic layer textures are supported on the platform. | |
| void | SetPriority
(
int32 InPriority |
Change the layer's render priority, higher priorities render on top of lower priorities | |
| void | SetQuadSize
(
FVector2D InQuadSize |
Change the quad size. This is the unscaled height and width, before component scale is applied. | |
| void | SetTexture
(
UTexture* InTexture |
Change the texture displayed on the stereo layer. | |
| void | SetUVRect
(
FBox2D InUVRect |
Change the UV coordinates mapped to the quad face |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnUnregister () |
Called when a component is unregistered. | |
| void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| int | CylinderHeight_DEPRECATED | int CylinderHeight is deprecated. Use the corresponding property of the UStereoLayerShapeCylinder subobject instead. | |
| float | CylinderOverlayArc_DEPRECATED | float CylinderOverlayArc is deprecated. Use the corresponding property of the UStereoLayerShapeCylinder subobject instead. | |
| float | CylinderRadius_DEPRECATED | float CylinderRadius is deprecated. Use the corresponding property of the UStereoLayerShapeCylinder subobject instead. | |
| FEquirectProps | EquirectProps_DEPRECATED | FEquirectProps EquirectProps is deprecated. Use the corresponding properties of the UStereoLayerShapeEquirect subobject instead. | |
| TEnumAsByte< enum EStereoLayerShape > | StereoLayerShape_DEPRECATED | TEnumAsByte |