Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FPrimitiveSceneProxy
- FPrimitiveSceneProxy::GetPrimitiveDistance()
- FSkeletalMeshSceneProxy::GetPrimitiveDistance()
- FStaticMeshSceneProxy::GetPrimitiveDistance()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/PrimitiveSceneProxy.h |
Include | #include "PrimitiveSceneProxy.h" |
Source | /Engine/Source/Runtime/Engine/Private/PrimitiveSceneProxy.cpp |
virtual bool GetPrimitiveDistance
&40;
int32 LODIndex,
int32 SectionIndex,
const FVector & ViewOrigin,
float & PrimitiveDistance
&41; const
Remarks
Get primitive distance to view origin for a given LOD-section. Whether distance was computed or not
Parameters
Name | Description |
---|---|
LODIndex | LOD index (INDEX_NONE for all) |
ElementIndex | Element index (INDEX_NONE for all) |
PrimitiveDistance | (OUT) LOD-section distance to view |