oh i was expecting you had some issues when trying to build.
pretty common to have issues the first time.
awesome! rider is pretty nice. otherwise i wouldnt speak of a paid software.
im happy it helped. i’m not sure if clion works as well as rider for unreal. i know rider is meant to be used with ue.
i also know there’s a plugin that you have to activate in the project settings for clion support, but again im not sure if that helps or not.
awesome thanks for sharing the code. it all looks good.
a couple of suggestions (they’re not errors but just what i’d retouch)
- add BlueprintType, and Blueprintable to the UCLASS on top. not necessary but could help.
- beware theword “component” is lowercase. If you were to rename the class i’d recommend to delete and recreate. otherwise you’ll have to be a bit careful and potentially regenerate the project if not using rider.
-
- linux is case sensitive.
always use a UPROPERTY() on UObject pointers, or they’ll get garbage collected.
make it Transient (just put transient inside uproperty) if it does not need to be serialized. (important or you might get weird behaviour).
use tobjectptr instead of raw pointers, but for class definition only.
like so
TObjectPtr OwnerCharacter = nullptr;
(i think you write TObjectPtr but i usually forward declare at the top of the header instead of inline).
also this is more a take it or leave it suggestions, but i’d always initialize my variables in the header. including ownercharacter = nullptr and defaultwalkspeed = ??;
my pleasure, im happy it helped. if it solved your issue maybe consider marking the post as solution.
i hope you can also make it work with vstudio if you need to. otherwise id recommend rider if you can stick to it.