UE5/RPG Attributes

    [UE5] GE로 속성 초기화하기 // Cast of nullptr to AuraAttributeSet failed 해결

    [UE5] GE로 속성 초기화하기 // Cast of nullptr to AuraAttributeSet failed 해결

    1. GE클래스로 속성초기화하는 함수 생성DefaultPrimaryAttributes변수가 그 GE임, BP에서 의존성 주입함class UGameplayEffect;UCLASS(Abstract)class AURA_API AAuraCharacterBase : public ACharacter, public IAbilitySystemInterface@@ -32,4 +33,9 @@ class AURA_API AAuraCharacterBase : public ACharacter, public IAbilitySystemInte TObjectPtr AttributeSet; virtual void InitAbilityActorInfo(); UPROPERTY(BlueprintReadOnly, EditAnywhere, C..

    [UE5] refactor : 속성초기화 DT에서, 속성추가방법

    [UE5] refactor : 속성초기화 DT에서, 속성추가방법

    1.속성추가방법i) AS에 변수추가, @Getter UPROPERTY(BlueprintReadOnly, ReplicatedUsing = OnRep_Strength, Category = "Primary Attributes") FGameplayAttributeData Strength; ATTRIBUTE_ACCESSORS(UAuraAttributeSet, Strength); UPROPERTY(BlueprintReadOnly, ReplicatedUsing = OnRep_Intelligence, Category = "Primary Attributes") FGameplayAttributeData Intelligence; ATTRIBUTE_ACCESSORS(UAuraAttributeSet, Intelligence);..