Hello,
I am having problem with creating ParticleSystemComponent in my classes. Whenever I try to access its members I get an error:
When I try to navigate to ParticleSystemComponent VS sends me to line 52 of the Emitter.h. I have checked external dependecies and I am missing all of the particle headers. Here is comparison of MyProject and ShooterGame:
When I try to compile code that creates PSC via PCIP
WheelDustPSC_FL = PCIP.CreateDefaultSubobject(this, TEXT("WheelDust_FL"));
I get compiler error:
1>------ Build started: Project: MyProject, Configuration: Development_Editor x64 ------
1> BSWheeledVehicle.cpp
1>d:\rocket\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(549): error C2440: 'initializing' : cannot convert from 'UParticleSystemComponent *' to 'UObject *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1> d:\rocket\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(547) : while compiling class template member function 'TSubobjectPtrConstructor::TSubobjectPtrConstructor(SubobjectType *)'
1> with
1> [
1> SubobjectType=UParticleSystemComponent
1> ]
1> d:\rocket\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(661) : see reference to function template instantiation 'TSubobjectPtrConstructor::TSubobjectPtrConstructor(SubobjectType *)' being compiled
1> with
1> [
1> SubobjectType=UParticleSystemComponent
1> ]
1> D:\Rocket\Projects\MyProject\MyProject\Source\MyProject\BSWheeledVehicle.cpp(14) : see reference to class template instantiation 'TSubobjectPtrConstructor' being compiled
1> with
1> [
1> SubobjectType=UParticleSystemComponent
1> ]
1>d:\rocket\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(549): error C2439: 'TSubobjectPtrConstructor::Object' : member could not be initialized
1> with
1> [
1> SubobjectType=UParticleSystemComponent
1> ]
1> d:\rocket\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(545) : see declaration of 'TSubobjectPtrConstructor::Object'
1> with
1> [
1> SubobjectType=UParticleSystemComponent
1> ]
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\Rocket\Projects\MyProject\MyProject\Binaries\Win64\RocketEditor-MyProject.pdb
1> Cumulative action seconds (8 processors): 0,00 building projects, 0,51 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
1> UBT execution time: 4,64 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""D:\Rocket\Engine\Binaries\DotNET\UnrealBuildTool.exe" MyProjectEditor Win64 Development "D:\Rocket\Projects\MyProject\MyProject\MyProject.uproject" -rocket" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This happens in all projects I create. My engine version is 1945001.