Hi every one , i am learning how to write code with unreal from a book, he was writing class for collectibel items and he write something like that “USphereComponent* BaseCollisionComponent ;” but when i try to do that i get error that uspherecomponent is undefined so what is the problem here and how i can fix that . thanks
You need to include its header, like so:
#include "Components/SphereComponent.h"
Cheers,
–mieszko
THANK YOU VERY MUCH it works
This error still occurs in this tutorial: https://docs.unrealengine.com/latest/INT/Programming/Tutorials/Components/1/