FStaticMeshInstanceData

The implementation of the static mesh instance data storage type.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StaticMeshResources.h

Include

#include "StaticMeshResources.h"

Syntax

class FStaticMeshInstanceData

Remarks

The implementation of the static mesh instance data storage type.

Constructors

Name Description

Public function

FStaticMeshInstanceData()

Public function

FStaticMeshInstanceData

(
    bool bInUseHalfFloat
)

Constructor

Destructors

Name Description

Public function

~FStaticMeshInstanceData()

Functions

Name Description

Public function

void

 

AllocateInstances

(
    int32 InNumInstances,
    EResizeBufferFlags BufferFlags,
    bool DestroyExistingInstances
)

Public function

void

 

ClearInstanceEditorData

(
    int32 InstanceIndex
)

Public function Const

void

 

GetInstanceShaderValues

(
    int32 InstanceIndex,
    FVector4 InstanceTransform,
    FVector4& InstanceLightmapAndShado...,
    FVector4& InstanceOrigin
)

Public function Const

void

 

GetInstanceTransform

(
    int32 InstanceIndex,
    FMatrix& Transform
)

Public function

FResourceArr...

 

GetLightMapResourceArray()

Public function

uint32

 

GetLightMapStride()

Public function Const

int32

 

GetNumInstances()

Public function

FResourceArr...

 

GetOriginResourceArray()

Public function

uint32

 

GetOriginStride()

Public function Const

SIZE_T

 

GetResourceSize()

Public function

FResourceArr...

 

GetTransformResourceArray()

Public function

uint32

 

GetTransformStride()

Public function Const

bool

 

GetTranslationUsesHalfs()

Public function Const

int32

 

IsValidIndex

(
    int32 Index
)

Public function

void

 

NullifyInstance

(
    int32 InstanceIndex
)

Public function

void

 

Serialize

(
    FArchive& Ar
)

Public function

void

 

SetAllowCPUAccess

(
    bool InNeedsCPUAccess
)

Public function

void

 

SetInstance

(
    int32 InstanceIndex,
    const FMatrix& Transform,
    const FVector2D& LightmapUVBias,
    const FVector2D& ShadowmapUVBias
)

Public function

void

 

SetInstance

(
    int32 InstanceIndex,
    const FMatrix& Transform,
    float RandomInstanceID
)

Public function

void

 

SetInstance

(
    int32 InstanceIndex,
    const FMatrix& Transform,
    float RandomInstanceID,
    const FVector2D& LightmapUVBias,
    const FVector2D& ShadowmapUVBias
)

Public function

void

 

SetInstanceEditorData

(
    int32 InstanceIndex,
    FColor HitProxyColor,
    bool bSelected
)

Public function

void

 

SetInstanceLightMapData

(
    int32 InstanceIndex,
    const FVector2D& LightmapUVBias,
    const FVector2D& ShadowmapUVBias
)

Public function

void

 

SwapInstance

(
    int32 Index1,
    int32 Index2
)

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