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: