Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- URuntimeVirtualTextureComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/RuntimeVirtualTextureComponent.h |
| Include | #include "Components/RuntimeVirtualTextureComponent.h" |
Syntax
class URuntimeVirtualTextureComponent : public USceneComponent
Remarks
Component used to place a URuntimeVirtualTexture in the world.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bBuildDebugStreamingMips | Build the streaming low mips using debug coloring. | |
| bool | bBuildStreamingMipsButton | Placeholder for details customization button. | |
| bool | bEnableScalability | Set to true to enable scalability settings for the virtual texture. | |
| bool | bHidePrimitives | Hide primitives in the main pass. | |
| TSoftObjectPtr< AActor > | BoundsAlignActor | Actor to align rotation to. If set this actor is always included in the bounds calculation. | |
| bool | bSetBoundsButton | Placeholder for details customization button. | |
| bool | bSnapBoundsToLandscape | If the Bounds Align Actor is a Landscape then this will snap the bounds so that virtual texture texels align with landscape vertex positions. | |
| bool | bUseStreamingLowMipsInEditor | Use streaming low mips when rendering in editor. | |
| FRenderCommandFence | DestroyFence | A fence to track render thread has finished with StreamingTexture data before destroy. | |
| FGetHidePrimitivesDelegate | HidePrimitivesDelegate | ||
| TEnumAsByte< ETextureLossyCompressionAmount > | LossyCompressionAmount | How aggressively should any relevant lossy compression be applied. | |
| FDelegateHandle | PieEndDelegateHandle | Delegate handle for our function called on PIE end. | |
| uint32 | ScalabilityGroup | Group index of the scalability settings to use for the virtual texture. | |
| FRuntimeVirtualTextureSceneProxy * | SceneProxy | Scene proxy object. Managed by the scene but stored here. | |
| TObjectPtr< UVirtualTextureBuilder > | StreamingTexture | Texture object containing streamed low mips. This can reduce rendering update cost. | |
| int32 | StreamLowMips | Number of streaming low mips to build for the virtual texture. | |
| TObjectPtr< URuntimeVirtualTexture > | VirtualTexture | The virtual texture object to use. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
URuntimeVirtualTextureComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint64 | Calculate a hash used to determine if the StreamingTexture contents are valid for use. | ||
| TSoftObjectPtr< AActor > & | Get the BoundsAlignActor on this component. | ||
| FGetHidePrimitivesDelegate & | Get the delegate used to extend the calculation of the HidePrimitives state. | ||
| void | GetHidePrimitiveSettings
(
bool& OutHidePrimitiveEditor, |
Get the full hide primitive state including the evaluating the GetHidePrimitivesDelegate delegate. | |
| TEnumAsByte< ETextureLossyCompressionAmount > | Public getter for lossy compression setting. | ||
| uint32 | Get group index of the scalability settings. | ||
| bool | Get if SnapBoundsToLandscape is set on this component. | ||
| UVirtualTextureBuilder * | Get the streaming virtual texture object on this component. | ||
| FTransform | Get a translation to account for any vertex sample offset from the use of bSnapBoundsToLandscape. | ||
| URuntimeVirtualTexture * | Get the runtime virtual texture object on this component. | ||
| void | InitializeStreamingTexture
(
EShadingPath ShadingPath, |
Initialize the low mip streaming texture with the passed in size and data. | |
| void | Invalidate
(
FBoxSphereBounds const& WorldBounds |
This function marks an area of the runtime virtual texture as dirty. | |
| bool | |||
| bool | Public getter for debug streaming mips flag. | ||
| bool | IsScalable () |
Get if scalability settings are enabled. | |
| bool | IsStreamingLowMips
(
EShadingPath ShadingPath |
Get if we want to use any streaming low mips on this component. | |
| bool | Returns true if there are StreamingTexure contents but they are not valid for use, taking into account all rendering modes | ||
| bool | IsStreamingTextureInvalid
(
EShadingPath ShadingPath |
Returns true if there are StreamingTexure contents but they are not valid for use. | |
| int32 | Public getter for virtual texture streaming low mips | ||
| void | SetBoundsAlignActor
(
AActor* InActor |
Get the BoundsAlignActor on this component. | |
| void | SetStreamingTexture
(
UVirtualTextureBuilder* InTexture |
Set a new asset to hold the low mip streaming texture. | |
| void | SetVirtualTexture
(
URuntimeVirtualTexture* InVirtualTexture |
Set the runtime virtual texture object on this component. |
Overridden from USceneComponent
| Type | Name | Description | |
|---|---|---|---|
| FBoxSphereBounds | CalcBounds
(
const FTransform& LocalToWorld |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. | |
| bool | IsVisible () |
Returns true if this component is visible in the current context |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyWorldOffset
(
const FVector& InOffset, |
Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location | |
| void | Function that gets called from within Map_Check to allow this actor component to check itself for any potential errors and register them with map check dialog. | ||
| void | CreateRenderState_Concurrent
(
FRegisterComponentContext* Context |
Used to create any rendering thread information for this component | |
| void | Used to shut down any rendering thread structure for this component | ||
| void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | |
| void | OnUnregister () |
Called when a component is unregistered. | |
| void | Called to send a transform update for this component to the rendering thread |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. | |
| bool | Called to check if the object is ready for FinishDestroy. |
Typedefs
| Name | Description |
|---|---|
| FGetHidePrimitivesDelegate | Delegate that this virtual texture will call to evaluated the full HidePrimitives state. |