FActorFactoryAssetProxy::ApplyMaterialToActor

Attempts to apply the material to the specified actor.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/AssetSelection.h

Include

#include "AssetSelection.h"

Source

/Engine/Source/Editor/UnrealEd/Private/AssetSelection.cpp

Syntax

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.

Returns

true if the material was successfully applied to the actor

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss