Wrapper around a UObject Component that can provide a MeshDescription, and (optionally) bake a modified MeshDescription back to this Component. 更多...
#include <ComponentSourceInterfaces.h>
Public 成员函数 | |
| virtual void | CommitMaterialSetUpdate (const FComponentMaterialSet &MaterialSet, bool bApplyToAsset) |
| Commit an update to the material set. 更多... | |
| FPrimitiveComponentTarget (UPrimitiveComponent *Component) | |
| Constructor UPrimitivecomponent* 更多... | |
| UMaterialInterface * | GetMaterial (int32 MaterialIndex) const |
| Get pointer to a Material provided by this Source 更多... | |
| virtual void | GetMaterialSet (FComponentMaterialSet &MaterialSetOut, bool bAssetMaterials=false) const |
| Get material set provided by this source 更多... | |
| int32 | GetNumMaterials () const |
| AActor * | GetOwnerActor () const |
| UPrimitiveComponent * | GetOwnerComponent () const |
| FTransform | GetWorldTransform () const |
| virtual bool | HasSameSourceData (const FPrimitiveComponentTarget &OtherTarget) const =0 |
| Checks if the underlying asset that would be edited by CommitMesh() is the same for two ComponentTargets 更多... | |
| bool | HitTest (const FRay &WorldRay, FHitResult &OutHit) const |
| Compute ray intersection with the MeshDescription this Source is providing 更多... | |
| virtual bool | IsValid () const |
| void | SetOwnerVisibility (bool bVisible) const |
| Set the visibility of the Component associated with this Source (ie to hide during Tool usage) 更多... | |
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)
|
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 |
| 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 |
| 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 |
| void FPrimitiveComponentTarget::SetOwnerVisibility | ( | bool | bVisible | ) | const |
Set the visibility of the Component associated with this Source (ie to hide during Tool usage)
| bVisible | desired visibility |