UMorphTarget

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Animation/MorphTarget.h

Include

#include "Animation/MorphTarget.h"

Syntax

class UMorphTarget : public UObject

Variables

Name Description

Public variable

TObjectPtr< cla...

 

BaseSkelMesh

USkeletalMesh that this vertex animation works on.

Protected variable

TArray< FMorphT...

 

MorphLODModels

Morph mesh vertex data for each LOD

Constructors

Name Description

Public function

UMorphTarget

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

DiscardVertexData()

Discard CPU Buffers after render resources have been created.

Public function Virtual

void

 

EmptyMorphLODModels()

Public function Virtual Const

const TArray...

 

GetMorphLODModels()

Morph mesh vertex data for each LOD

Public function Virtual

TArray< FMor...

 

GetMorphLODModels()

Morph mesh vertex data for each LOD

Public function Const

const FMorph...

 

GetMorphTargetDelta

(
    int32 LODIndex,
    int32& OutNumDeltas
)

Get Morphtarget Delta array for the given input Index

Public function Virtual Const

bool

 

HasDataForLOD

(
    int32 LODIndex
)

Public function Virtual Const

bool

 

HasDataForSection

(
    int32 LODIndex,
    int32 SectionIndex
)

Return true if this morphtarget contains data for section within LOD

Public function Virtual Const

bool

 

HasValidData()

Return true if this morphtarget contains valid vertices

Public function Virtual

void

 

PopulateDeltas

(
    const TArray< FMorphTargetDelta >&...,
    const int32 LODIndex,
    const TArray< struct FSkelMeshSecti...,
    const bool bCompareNormal,
    const bool bGeneratedByReductionSet...,
    const float PositionThreshold
)

Populates the given morph target LOD model with the provided deltas

Public function Virtual

void

 

RemoveEmptyMorphTargets()

Remove empty LODModels

Public function Virtual

void

 

SerializeMemoryArchive

(
    FMemoryArchive& Ar
)

UObject does not support serialization via FMemoryArchive, so manually handle separately

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.