TSubObjectPtr not working
Hi, I know this is probable a stupid question but I'm new to programming, and I'm working out a book, Learning C++ by Creating Games with UE4. I'm pretty sure I have entered all the code correctly, but it won't work. My code looks like this:
Any help would be much appreciated! Thanks!
hi im fairly new to unreal. but i think i read that TSubObjectPtr are depricated and that u should jsut use raw pointers like AActor* and stuff.
I am not sure what u try to accomplish, but maybe u need something like that. UPROPERTY(EditDefaultsOnly, Category=Damage) TSubclassOf DamageType;
answered Jan 07 '18 at 06:19 PM
Hey there, if you are trying to create a sphere component that will belong to your object then you should just do:
answered Jan 08 '18 at 10:31 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here