Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FActorFactoryAssetProxy
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/AssetSelection.h |
| Include | #include "AssetSelection.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/AssetSelection.cpp |
static bool ApplyMaterialToActor
(
AActor * TargetActor,
UMaterialInterface * MaterialToApply,
int32 OptionalMaterialSlot
)
Remarks
Attempts to apply the material to the specified actor.
Attempts to apply the material to the specified actor. true if the material was successfully applied to the actor
Parameters
| Name | Description |
|---|---|
| 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. |