FSkeletalMeshSceneProxy::GetPrimitiveDistance

Get primitive distance to view origin for a given LOD-section.

Windows
MacOS
Linux

Override Hierarchy

FPrimitiveSceneProxy::GetPrimitiveDistance()

FSkeletalMeshSceneProxy::GetPrimitiveDistance()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SkeletalMeshTypes.h

Include

#include "SkeletalMeshTypes.h"

Source

/Engine/Source/Runtime/Engine/Private/SkeletalMesh.cpp

Syntax

virtual bool GetPrimitiveDistance
(
    int32 LODIndex,
    int32 SectionIndex,
    const FVector & ViewOrigin,
    float & PrimitiveDistance
) const

Remarks

Get primitive distance to view origin for a given LOD-section.

Returns

Whether distance was computed or not

Parameters

Parameter

Description

LODIndex

LOD index (INDEX_NONE for all)

ElementIndex

Element index (INDEX_NONE for all)

PrimitiveDistance

(OUT) LOD-section distance to view

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss