FStaticMeshStaticLightingMesh

Represents the triangles of one LOD of a static mesh primitive to the static lighting system.

Windows
MacOS
Linux

Inheritance Hierarchy

FRefCountedObject

FStaticLightingMesh

FStaticMeshStaticLightingMesh

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StaticMeshLight.h

Include

#include "StaticMeshLight.h"

Syntax

class FStaticMeshStaticLightingMesh : public FStaticLightingMesh

Remarks

Represents the triangles of one LOD of a static mesh primitive to the static lighting system.

Variables

Name Description

Protected variable

const int32

 

LODIndex

The LOD this mesh represents.

Public variable

TArray< FStatic...

 

OtherLODs

The meshes representing other LODs of this primitive.

Constructors

Name Description

Public function

FStaticMeshStaticLightingMesh

(
    const UStaticMeshComponent* In...,
    int32 InLODIndex,
    const TArray< ULightComponent*...
)

Initialization constructor.

Functions

Name Description

Public function Virtual Const

const FSplin...

 

GetSplineParameters()

Protected function

void

 

SetLocalToWorld

(
    const FMatrix& InLocalToWorld
)

Sets the local to world matrix for this mesh, will also update LocalToWorldInverseTranspose

Overridden from FStaticLightingMesh

Name Description

Public function Virtual Const

void

 

ExportMeshInstance

(
    FLightmassExporter* Exporter
)

Export static lighting mesh instance data to an exporter

Public function Virtual Const

void

 

GetTriangle

(
    int32 TriangleIndex,
    FStaticLightingVertex& OutV0,
    FStaticLightingVertex& OutV1,
    FStaticLightingVertex& OutV2
)

Accesses a triangle.

Public function Virtual Const

void

 

GetTriangleIndices

(
    int32 TriangleIndex,
    int32& OutI0,
    int32& OutI1,
    int32& OutI2
)

Accesses a triangle's vertex indices.

Public function Virtual Const

FLightRayInt...

 

IntersectLightRay

(
    const FVector& Start,
    const FVector& End,
    bool bFindNearestIntersection
)

Checks if a line segment intersects the mesh.

Public function Virtual Const

bool

 

IsControllingShadowPerElement()

Public function Virtual Const

bool

 

IsTriangleCastingShadow

(
    uint32 TriangleIndex
)

Public function Virtual Const

bool

 

IsUniformShadowCaster()

Checks whether ShouldCastShadow will return true always.

Public function Virtual Const

bool

 

ShouldCastShadow

(
    ULightComponent* Light,
    const FStaticLightingMapping* ...
)

Determines whether the mesh should cast a shadow from a specific light on a specific mapping.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback