Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FPrimitiveSceneProxy
- FStaticMeshSceneProxy
- FInstancedStaticMeshSceneProxy
- FHierarchicalStaticMeshSceneProxy
- FSplineMeshSceneProxy
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/StaticMeshSceneProxy.h |
| Include | #include "StaticMeshSceneProxy.h" |
Syntax
class FStaticMeshSceneProxy : public FPrimitiveSceneProxy
Remarks
A static mesh component scene proxy.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bCastShadow | ||
| bool | bPerSectionSelection | Whether selection should be per section or per entire proxy. | |
| uint32: 1 | bReverseCulling | This primitive has culling reversed | |
| const FCardRepresentationData * | CardRepresentationData | ||
| int32 | ClampedMinLOD | Minimum LOD index to use. Clamped to valid range [0, NumLODs - 1]. | |
| const FDistanceFieldVolumeData * | DistanceFieldData | ||
| int32 | ForcedLodModel | The forcedLOD set in the static mesh editor, copied from the mesh component | |
| TArray< FLODInfo > | LODs | ||
| int32 | MaterialIndexPreview | Index of the material to preview. If set to INDEX_NONE, all section will be rendered | |
| FMaterialRelevance | MaterialRelevance | The view relevance for all the static mesh's materials. | |
| TArray< uint32 > | MaterialStreamingRelativeBoxes | Material bounds used for texture streaming. | |
| uint32: 2 | MeshPaintTextureCoordinateIndex | The coordinate index to use for texture color painting. | |
| UMaterialInterface * | OverlayMaterial | ||
| float | OverlayMaterialMaxDrawDistance | ||
| FStaticMeshRenderData * | RenderData | ||
| int32 | SectionIndexPreview | Index of the section to preview. If set to INDEX_NONE, all section will be rendered | |
| float | StreamingDistanceMultiplier | The component streaming distance multiplier | |
| float | StreamingTransformScale | The cached GetTextureStreamingTransformScale | |
| float | WPODisableDistance | The distance at which to disable World Position Offset (0 = no max). |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FStaticMeshSceneProxy
(
UStaticMeshComponent* Component, |
Initialization constructor. | ||
FStaticMeshSceneProxy
(
const FStaticMeshSceneProxyDesc& InDesc, |
Initialization constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| SIZE_T | |||
| bool | GetCollisionMeshElement
(
int32 LODIndex, |
Sets up a collision FMeshBatch for a specific LOD and element. | |
| uint8 | Only call on render thread timeline | ||
| void | GetDistanceFieldAtlasData
(
const FDistanceFieldVolumeData*& OutDistanceFieldData, |
||
| FLODMask | GetLODMask
(
const FSceneView* View |
Returns the LOD mask for a view, this is like the ordinary LOD but can return two values for dither fading | |
| bool | GetMaterialTextureScales
(
int32 LODIndex, |
||
| bool | GetMeshElement
(
int32 LODIndex, |
Sets up a FMeshBatch for a specific LOD and element. | |
| int32 | Gets the number of mesh batches required to represent the proxy, aside from section needs. | ||
| float | GetScreenSize
(
int32 LODIndex |
Returns the display factor for the given LOD level | |
| bool | GetShadowMeshElement
(
int32 LODIndex, |
Sets up a shadow FMeshBatch for a specific LOD. | |
| bool | GetWireframeMeshElement
(
int32 LODIndex, |
Sets up a wireframe FMeshBatch for a specific LOD. | |
| bool | IsCollisionView
(
const FEngineShowFlags& EngineShowFlags, |
||
| bool | IsReversedCullingNeeded
(
bool bUseReversedIndices |
Returns whether this mesh needs reverse culling when using reversed indices. | |
| void | SetEvaluateWorldPositionOffsetInRayTracing
(
FRHICommandListBase& RHICmdList, |
||
| uint32 | SetMeshElementGeometrySource
(
int32 LODIndex, |
Configures mesh batch vertex / index state. Returns the number of primitives used in the element. | |
| void | SetMeshElementScreenSize
(
int32 LODIndex, |
Sets the screen size on a mesh element. | |
| bool | Returns whether this mesh should render back-faces instead of front-faces - either with reversed indices or reversed cull mode |
Overridden from FPrimitiveSceneProxy
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | |||
| HHitProxy * | CreateHitProxies
(
IPrimitiveComponent* ComponentInterface, |
Creates the hit proxies are used when DrawDynamicElements is called. Called in the game thread. | |
| HHitProxy * | CreateHitProxies
(
UPrimitiveComponent* Component, |
All FPrimitiveSceneProxy derived classes can decide to fully override the HHitProxy creation, or add their own and call any of their base classes to add theirs. | |
| void | CreateRenderThreadResources
(
FRHICommandListBase& RHICmdList |
Called when the rendering thread adds the proxy to the scene. | |
| void | Called when the rendering thread removes the proxy from the scene. | ||
| void | Draws the primitive's static elements. | ||
| uint8 | |||
| FDesiredLODLevel | GetDesiredLODLevel_RenderThread
(
const FSceneView* View |
||
| void | GetDynamicMeshElements
(
const TArray< const FSceneView* >& Views, |
Gathers the primitive's dynamic mesh elements. | |
| bool | GetInstanceWorldPositionOffsetDisableDistance
(
float& OutWPODisableDistance |
Retrieves the per-instance world position offset disable distance | |
| void | |||
| int32 | Get the lightmap UV coordinate index for this primitive. | ||
| void | GetLightRelevance
(
const FLightSceneProxy* LightSceneProxy, |
Determines the relevance of this primitive's elements to the given light. | |
| int32 | GetLOD
(
const FSceneView* View |
Returns the LOD that the primitive will render at for this view. | |
| uint32 | Every derived class should override these functions | ||
| const FCardRepresentationData * | |||
| void | GetMeshDescription
(
int32 LODIndex, |
Gathers a description of the mesh elements to be rendered for the given LOD index, without consideration for views. | |
| FUintVector2 | |||
| bool | GetMeshUVDensities
(
int32 LODIndex, |
Get mesh UV density for a LOD-section. | |
| bool | GetPrimitiveDistance
(
int32 LODIndex, |
Get primitive distance to view origin for a given LOD-section. | |
| SIZE_T | GetTypeHash () |
Return a type (or subtype) specific hash for sorting purposes | |
| FPrimitiveViewRelevance | GetViewRelevance
(
const FSceneView* View |
Determines the relevance of this primitive's elements to the given view. | |
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| void | Allows child implementations to do render-thread work when bEvaluateWorldPositionOffset changes | ||
| bool |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FLODInfo | Information used by the proxy about a single LOD of the mesh. |