UDecalComponent::SetDecalMaterial

Setting decal material on decal component. This will force the decal to reattach

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/DecalComponent.h

Include

#include "Components/DecalComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/DecalComponent.cpp

Syntax

void SetDecalMaterial
(
    class UMaterialInterface * NewDecalMaterial
)

Remarks

Setting decal material on decal component. This will force the decal to reattach