tranek / GASDocumentation

My understanding of Unreal Engine 5's GameplayAbilitySystem plugin with a simple multiplayer sample project.
MIT License
4.26k stars 789 forks source link

TWeakObjectPtr issue #87

Open DreadDev1 opened 1 year ago

DreadDev1 commented 1 year ago

Hello there, I am currently working on reproducing your project so that I can understand it.

In my GDHeroCharacter.cpp I am getting this error GDHeroCharacter.cpp(193): [C2664] see reference to function template instantiation 'TWeakObjectPtr<UGDAttributeSetBase,FWeakObjectPtr> &TWeakObjectPtr<UGDAttributeSetBase,FWeakObjectPtr>::operator =(U *)' being compiled

I have attached a .txt file with the complete compile error. I copied the code exactly from the GDCharacterBase and the GDHeroClass and I am having trouble finding why this is happening.

TweakObjectPtr.txt

vocthor commented 4 months ago

Hey, I also got a similar issue. For me, it was an import issue : be sure you've included your AttributeSet at the beginning of your cpp file