UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FStreamingRenderAssetPrimitiveInfo Struct Reference

#include <TextureStreamingTypes.h>

Public Member Functions

 FStreamingRenderAssetPrimitiveInfo ()
 
 FStreamingRenderAssetPrimitiveInfo (UStreamableRenderAsset *InAsset, const FBoxSphereBounds &InBounds, float InTexelFactor, uint32 InPackedRelativeBox=0, bool bInAllowInvalidTexelFactorWhenUnregistered=false, bool bInAffectedByComponentScale=true)
 
bool CanBeStreamedByDistance (bool bOwningCompRegistered) const
 

Public Attributes

TObjectPtr< UStreamableRenderAssetRenderAsset
 
FBoxSphereBounds Bounds
 
float TexelFactor
 
uint32 PackedRelativeBox
 
uint32 bAllowInvalidTexelFactorWhenUnregistered: 1
 
uint32 bAffectedByComponentScale: 1
 

Detailed Description

Information about a streaming texture/mesh that a primitive uses for rendering.

Constructor & Destructor Documentation

◆ FStreamingRenderAssetPrimitiveInfo() [1/2]

FStreamingRenderAssetPrimitiveInfo::FStreamingRenderAssetPrimitiveInfo ( )
inline

◆ FStreamingRenderAssetPrimitiveInfo() [2/2]

FStreamingRenderAssetPrimitiveInfo::FStreamingRenderAssetPrimitiveInfo ( UStreamableRenderAsset InAsset,
const FBoxSphereBounds InBounds,
float  InTexelFactor,
uint32  InPackedRelativeBox = 0,
bool  bInAllowInvalidTexelFactorWhenUnregistered = false,
bool  bInAffectedByComponentScale = true 
)
inline

Member Function Documentation

◆ CanBeStreamedByDistance()

bool FStreamingRenderAssetPrimitiveInfo::CanBeStreamedByDistance ( bool  bOwningCompRegistered) const
inline

Member Data Documentation

◆ bAffectedByComponentScale

uint32 FStreamingRenderAssetPrimitiveInfo::bAffectedByComponentScale

Mesh texel factors aren't uv density and shouldn't be affected by component scales

◆ bAllowInvalidTexelFactorWhenUnregistered

uint32 FStreamingRenderAssetPrimitiveInfo::bAllowInvalidTexelFactorWhenUnregistered

For mesh components, texel factors are their sphere bound diameters that are 0 when unregistered

◆ Bounds

FBoxSphereBounds FStreamingRenderAssetPrimitiveInfo::Bounds

The streaming bounds of the texture/mesh, usually the component material bounds. Usually only valid for registered component, as component bounds are only updated when the components are registered. otherwise only PackedRelativeBox can be used.Irrelevant when the component is not registered, as the component could be moved by ULevel::ApplyWorldOffset() In that case, only PackedRelativeBox is meaningful.

◆ PackedRelativeBox

uint32 FStreamingRenderAssetPrimitiveInfo::PackedRelativeBox

When non zero, this represents the relative box used to compute Bounds, using the component bounds as reference. If available, this allows the renderable asset streamer to generate the level streaming data before the level gets visible. At that point, the component are not yet registered, and the bounds are unknown, but the precompiled build data is still available. Also allows to update the relative bounds after a level get moved around from ApplyWorldOffset.

◆ RenderAsset

TObjectPtr<UStreamableRenderAsset> FStreamingRenderAssetPrimitiveInfo::RenderAsset

◆ TexelFactor

float FStreamingRenderAssetPrimitiveInfo::TexelFactor

The documentation for this struct was generated from the following file: