Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h |
Include |
#include "Kismet2/ComponentEditorUtils.h" |
Source |
/Engine/Source/Editor/UnrealEd/Private/Kismet2/ComponentEditorUtils.cpp |
static bool AttemptApplyMaterialToComponent
(
USceneComponent * SceneComponent,
UMaterialInterface * MaterialToApply,
int32 OptionalMaterialSlot
)
Attempts to apply a material to a component at the specified slot.
True if the material was successfully applied to the component.
Parameter |
Description |
---|---|
SceneComponent |
The component to which we should attempt to apply the material |
MaterialToApply |
The material to apply to the component |
OptionalMaterialSlot |
The material slot on the component to which the material should be applied. -1 to apply to all slots on the component. |