The identifier is not defined

Hi everyone,

i am new in Unreal Engine and i got a problem in this tutorial:
https://docs.unrealengine.com/latest/INT/Programming/Tutorials/Components/1/index.html
When i try to declare a variable named “OurParticleSystem” of type “UParticleSystemComponent”
(you see at step 2 of the tutorial) my Visual Studio tells me that the identifier is not
defined. I have Unreal Engine 4.18.0 with Visual Studio Community 2015. When i am typing in
visual studio i see that IntelliSense from Unreal Engine is working but it doesent know the
identifier “UParticleSystemComponent”. Before i started the tutorial i followed these steps:

to set up visual studio with unreal engine. Below you see the code of the header file where i
got the problem (last line in class). I tried “rebuild all”, starting a new project, closing
editor and opening again, but nothing works. Can anyone help me?

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "CollidingPawn.generated.h"

UCLASS()
class HOWTO_COMPONENTS_API ACollidingPawn : public APawn
{
	GENERATED_BODY()

public:
	// Sets default values for this pawn's properties
	ACollidingPawn();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	// Called to bind functionality to input
	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

	
	UParticleSystemComponent *MyParticleSystem;

And here is what is see in visual studio:

220636-cusersluccidesktops.png

If I’m understanding this correctly, you’ve yet to assign it as a property.

UPROPERTY() 
UParticleSystem* UParticleSystemComponent;

Try inserting this and see if it works. I think a lot of these tutorials are outdated and haven’t been updated for newer versions of Unreal Engine. I’m doing the FPS Tutorial myself and I’ve had to figure out a lot of issues on my own by trawling through forums and such.

Thanks for your answer, but there is a difference between my Code and yours. I’m using a pointer to an “UParticleSystemComponent” and you are using a Pointer to an “UParticleSystem”. My Visual Studio knows the identifier “UParticleSystem” but still doesnt know “UParticleSystemComponent” even when I insert “UPROPERTY()” before the declaration. I solved the problem on my own. I looked for the class “UParticleSystemComponent” in the Unreal Engine documentation. At the bottom of this site:

there is a header. When including this header it works. Although I don’t like to include thousands of Headers I did it anyway because I found no other way to solve the problem.

Thank you @G1ZG4R, this fixed my problem.