/Engine/Source/Editor/UnrealEd/Public/AssetSelection.h
Attempts to apply the material to the specified actor.
true if the material was successfully applied to the actor
static bool ApplyMaterialToActor ( [AActor](API\Runtime\Engine\GameFramework\AActor) * TargetActor, [UMaterialInterface](API\Runtime\Engine\Materials\UMaterialInterface) * MaterialToApply, int32 OptionalMaterialSlot )