Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FActorFactoryAssetProxy
Description
Attempts to apply the material to the specified actor.
Attempts to apply the material to the specified actor.
| Name | ApplyMaterialToActor |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/AssetSelection.h |
| Include Path | #include "AssetSelection.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/AssetSelection.cpp |
static bool ApplyMaterialToActor
(
AActor * TargetActor,
UMaterialInterface * MaterialToApply,
int32 OptionalMaterialSlot
)
true if the material was successfully applied to the actor
Parameters
| Name | Remarks |
|---|---|
| TargetActor | the actor to apply the material to |
| MaterialToApply | the material to apply to the actor |
| OptionalMaterialSlot | the material slot to apply it to. |
| TargetActor | the actor to apply the material to |
| MaterialToApply | the material to apply to the actor |
| OptionalMaterialSlot | the material slot to apply to. |