Why this no work?
This commit is contained in:
@@ -20,7 +20,6 @@ AAuraEnemy::AAuraEnemy()
|
|||||||
|
|
||||||
void AAuraEnemy::HighlightActor()
|
void AAuraEnemy::HighlightActor()
|
||||||
{
|
{
|
||||||
bHighlighted = true;
|
|
||||||
GetMesh()->SetRenderCustomDepth(true);
|
GetMesh()->SetRenderCustomDepth(true);
|
||||||
GetMesh()->SetCustomDepthStencilValue(250.f);
|
GetMesh()->SetCustomDepthStencilValue(250.f);
|
||||||
Weapon->SetRenderCustomDepth(true);
|
Weapon->SetRenderCustomDepth(true);
|
||||||
@@ -29,7 +28,6 @@ void AAuraEnemy::HighlightActor()
|
|||||||
|
|
||||||
void AAuraEnemy::UnHighlightActor()
|
void AAuraEnemy::UnHighlightActor()
|
||||||
{
|
{
|
||||||
bHighlighted = false;
|
|
||||||
GetMesh()->SetRenderCustomDepth(false);
|
GetMesh()->SetRenderCustomDepth(false);
|
||||||
Weapon->SetRenderCustomDepth(false);
|
Weapon->SetRenderCustomDepth(false);
|
||||||
}
|
}
|
||||||
@@ -49,4 +47,6 @@ void AAuraEnemy::InitAbilityActorInfo()
|
|||||||
{
|
{
|
||||||
AbilitySystemComponent->InitAbilityActorInfo(this, this);
|
AbilitySystemComponent->InitAbilityActorInfo(this, this);
|
||||||
Cast<UAuraAbilitySystemComponent>(AbilitySystemComponent)->AbilityActorInfoSet();
|
Cast<UAuraAbilitySystemComponent>(AbilitySystemComponent)->AbilityActorInfoSet();
|
||||||
|
|
||||||
|
InitializeDefaultAttributes();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user