![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ComponentSourceInterfaces.h>
Classes | |
| struct | FCommitParams |
Public Types | |
| using | FCommitter = TFunction< void(const FCommitParams &) > |
Public Attributes | |
| UPrimitiveComponent * | Component {} |
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)
| using FPrimitiveComponentTarget::FCommitter = TFunction< void( const FCommitParams& ) > |
|
inlinevirtual |
|
inline |
Constructor UPrimitivecomponent*
| Component | the UPrimitiveComponent* to target |
|
virtual |
Commit an update to the material set. This may generate a transaction.
| MaterialSet | new list of materials |
| bApplyToAsset | if true, materials of Asset are updated (if Asset exists), rather than Component |
|
pure virtual |
| UMaterialInterface * FPrimitiveComponentTarget::GetMaterial | ( | int32 | MaterialIndex | ) | const |
Get pointer to a Material provided by this Source
| MaterialIndex | index of the material |
|
virtual |
Get material set provided by this source
| MaterialSetOut | returned material set |
| bAssetMaterials | if an underlying asset exists, return the Asset-level material assignment instead of the component materials |
|
pure virtual |
| int32 FPrimitiveComponentTarget::GetNumMaterials | ( | ) | const |
| AActor * FPrimitiveComponentTarget::GetOwnerActor | ( | ) | const |
| UPrimitiveComponent * FPrimitiveComponentTarget::GetOwnerComponent | ( | ) | const |
| FTransform FPrimitiveComponentTarget::GetWorldTransform | ( | ) | const |
|
pure virtual |
Checks if the underlying asset that would be edited by CommitMesh() is the same for two ComponentTargets
| OtherTarget | Another component target to compare against |
| bool FPrimitiveComponentTarget::HitTest | ( | const FRay & | WorldRay, |
| FHitResult & | OutHit | ||
| ) | const |
Compute ray intersection with the MeshDescription this Source is providing
| WorldRay | ray in world space |
| OutHit | hit test data |
|
virtual |
Set the visibility of the Component associated with this Source (ie to hide during Tool usage)
| bVisible | desired visibility |
| UPrimitiveComponent* FPrimitiveComponentTarget::Component {} |