Why this no work?

This commit is contained in:
2025-10-17 14:46:42 -04:00
parent bfd2417528
commit 951b45b07c

View File

@@ -20,7 +20,6 @@ AAuraEnemy::AAuraEnemy()
void AAuraEnemy::HighlightActor()
{
bHighlighted = true;
GetMesh()->SetRenderCustomDepth(true);
GetMesh()->SetCustomDepthStencilValue(250.f);
Weapon->SetRenderCustomDepth(true);
@@ -29,7 +28,6 @@ void AAuraEnemy::HighlightActor()
void AAuraEnemy::UnHighlightActor()
{
bHighlighted = false;
GetMesh()->SetRenderCustomDepth(false);
Weapon->SetRenderCustomDepth(false);
}
@@ -47,6 +45,8 @@ void AAuraEnemy::BeginPlay()
void AAuraEnemy::InitAbilityActorInfo()
{
AbilitySystemComponent->InitAbilityActorInfo(this,this);
AbilitySystemComponent->InitAbilityActorInfo(this, this);
Cast<UAuraAbilitySystemComponent>(AbilitySystemComponent)->AbilityActorInfoSet();
InitializeDefaultAttributes();
}