일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- attribute
- photon fusion2
- map design
- os
- unity
- stride
- nanite
- 언리얼 엔진
- MAC
- 보안
- 게임개발
- listen server
- 유니티
- local prediction
- Aegis
- 게임 개발
- Multiplay
- gameplay effect
- animation
- Unreal Engine
- UI
- Replication
- gameplay tag
- ability task
- rpc
- gas
- gameplay ability system
- 언리얼엔진
- CTF
- network object pooling
Archives
- Today
- Total
Replicated
[Drag Down] Gameplay Tag 관리 리팩토링 본문
지금까지 태그를 그냥 하드코딩했는데 그렇게 적절하진 않은 거 같다.
#pragma once
#include "CoreMinimal.h"
#include "GameplayTagContainer.h"
#define DDTAG_STATE_USINGABILITY FGameplayTag::RequestGameplayTag(FName("Player.State.UsingAbility"))
#define DDTAG_STATE_DODGE FGameplayTag::RequestGameplayTag(FName("Player.State.Dodge"))
#define DDTAG_EVENT_DODGEEND FGameplayTag::RequestGameplayTag(FName("Event.DodgeEnd"))
#define DDTAG_EVENT_PUSHTRIGGER FGameplayTag::RequestGameplayTag(FName("Event.PushTrigger"))
#define DDTAG_DATA_STAMINAUSED FGameplayTag::RequestGameplayTag(FName("Data.StaminaUsed"))
헤더에 태그 정의해두고
UDDGA_ActionBase::UDDGA_ActionBase()
{
NetExecutionPolicy = EGameplayAbilityNetExecutionPolicy::LocalPredicted;
InstancingPolicy = EGameplayAbilityInstancingPolicy::InstancedPerActor;
static ConstructorHelpers::FClassFinder<UGameplayEffect> DownStaminaEffectRef(TEXT("/Game/Blueprint/GA/GE/BPGE_DownStamina.BPGE_DownStamina_C"));
if (DownStaminaEffectRef.Succeeded())
{
DownStaminaEffect = DownStaminaEffectRef.Class;
}
bIsEventTriggered = false;
ActivationBlockedTags.AddTag(DDTAG_STATE_USINGABILITY);
}
실 사용 시에는 태그 참조하도록 한다.
'언리얼 엔진 > Drag Down (캡스톤 디자인)' 카테고리의 다른 글
[Drag Down] 텍스쳐 사이즈 줄이기 (0) | 2025.04.08 |
---|---|
[Drag Down] Stamina UI Interpolation (0) | 2025.04.06 |
[Drag Down] 액션 어빌리티 리팩토링 (0) | 2025.04.06 |
** [Drag Down] UI 자체 Local Prediction 구현 ** (0) | 2025.04.05 |
[Drag Down] 주기적으로 호출되는 이펙트를 예측 실행하면 안된다.. (0) | 2025.04.05 |