FPrimitiveComponentTarget

Wrapper around a [UObject](API\Runtime\CoreUObject\UObject\UObject) Component that can provide a MeshDescription, and (optionally) bake a modified MeshDescription back to this Component.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/ComponentSourceInterfaces.h

Include

#include "ComponentSourceInterfaces.h"

Syntax

class FPrimitiveComponentTarget

Remarks

Wrapper around a UObject Component that can provide a MeshDescription, and (optionally) bake a modified MeshDescription back to this Component. An example of a Source might be a StaticMeshComponent. How a modified MeshDescription is committed back is context-dependent (in Editor vs PIE vs Runtime, etc).

(Conceivably this doesn't have to be backed by a Component, but most usage will assume there is an Actor)

Variables

Name Description

Public variable

UPrimitiveCompo...

 

Component

Constructors

Name Description

Public function

FPrimitiveComponentTarget

(
    UPrimitiveComponent* Component
)

Constructor UPrimitivecomponent*

Destructors

Name Description

Public function Virtual

~FPrimitiveComponentTarget()

Functions

Name Description

Public function Virtual

void

 

CommitMaterialSetUpdate

(
    const FComponentMaterialSet& Mater...,
    bool bApplyToAsset
)

Commit an update to the material set. This may generate a transaction.

Public function

void

 

CommitMesh

(
    const FCommitter&
)

Public function Const

UMaterialInt...

 

GetMaterial

(
    int32 MaterialIndex
)

Get pointer to a Material provided by this Source

Public function Virtual Const

void

 

GetMaterialSet

(
    FComponentMaterialSet& MaterialSet...,
    bool bAssetMaterials
)

Get material set provided by this source

Public function

FMeshDescrip...

 

GetMesh()

Public function Const

int32

 

GetNumMaterials()

Public function Const

AActor *

 

GetOwnerActor()

Public function Const

UPrimitiveCo...

 

GetOwnerComponent()

Public function Const

FTransform

 

GetWorldTransform()

Public function Const

bool

 

HasSameSourceData

(
    const FPrimitiveComponentTarget& O...
)

Checks if the underlying asset that would be edited by CommitMesh() is the same for two ComponentTargets

Public function Const

bool

 

HitTest

(
    const FRay& WorldRay,
    FHitResult& OutHit
)

Compute ray intersection with the MeshDescription this Source is providing

Public function Const

bool

 

IsValid()

Public function Const

void

 

SetOwnerVisibility

(
    bool bVisible
)

Set the visibility of the Component associated with this Source (ie to hide during Tool usage)

Classes

Name

Description

Public struct

FCommitParams

Typedefs

Name

Description

FCommitter

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