Hi,
im still c++ noob but im a little curious why this class selection not working when i use pointer to class, but tsubclass of working (afaik its pointer too right?)
btw abilitySet pointer working right.
Has it something to do with class vs class instance? (or some additional magic happening in tsubclassof ?)
TSubclassOf<UGameplayAbility> is actually fancy wrapper for an UClass* pointer, so this allows you to select an arbitrary subclass, including blueprint generated classes.
UGameplayAbility* is a pointer to an instance of any of those classes. Does that make sense?
Hi, thanks for clarify, however i still understand very well. It means TSubclassOf contains some code which make subclasses “listable” in dropdown menu?
Im confused because pointer to AbilitySet gives me list of subclasses… but GameplayAbility pointer not. So it means in those parent classes is some code which enables dropdown menu depending on type of class?