Created
June 16, 2018 22:03
-
-
Save nebulou5/a6248ddf5c6c28a5f0272f00258a6d9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static ConstructorHelpers::FObjectFinder<UMaterial> MaterialFinder(*SelectionMaterialPath); | |
if (MaterialFinder.Succeeded()) { | |
SelectionDecalMaterial = MaterialFinder.Object; | |
SelectionDecalMaterialInstance = UMaterialInstanceDynamic::Create(SelectionDecalMaterial, this); | |
SelectionDecal = CreateDefaultSubobject<UDecalComponent>(TEXT("SelectionDecal")); | |
SelectionDecal->AttachTo(RootComponent); | |
SelectionDecal->SetDecalMaterial(SelectionDecalMaterialInstance); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment