I am trying to create a derived class from UParticleModuleCollision. I have originally created it from the unreal editor and no surprise it crashed. Therefore, i went ahead and mess with the API and macro declaration. From what i am able to gather from the web, this is as far as i went and im stuck now. Please let me know what have i done wrong. Thanks in advance.
Below are my code:
CustomParticleModuleCollision.h
pragma once
include “CoreMinimal.h”
include “Particles/Collision/ParticleModuleCollision.h”
include “ParticleDefinitions.h”
include “CustomParticleModuleCollision.generated.h”
/**
*
*/
UCLASS(editinlinenew, hidecategories = Object, meta = (DisplayName = “Actor Collision”))
class ENGINE_API UCustomParticleModuleCollision : public UParticleModuleCollision
{
GENERATED_UCLASS_BODY()
};
#CustomParticleModuleCollision.CPP
include “CustomParticleModuleCollision.h”
UParticleModuleCollisionBase::UParticleModuleCollisionBase(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
UCustomParticleModuleCollision::UCustomParticleModuleCollision(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
#ERRORS
Error C4273 ‘UCustomParticleModuleCollision::GetPrivateStaticClass’: inconsistent dll linkage Snow2 F:\Programfiles\Snow2\Intermediate\Build\Win64\UE4Editor\Inc\Snow2\CustomParticleModuleCollision.gen.cpp 58
Error C4273 ‘UCustomParticleModuleCollision::StaticRegisterNativesUCustomParticleModuleCollision’: inconsistent dll linkageF:\Programfiles\Snow2\Source\Snow2\CustomParticleModuleCollision.cpp(26): error C4273: ‘UCustomParticleModuleCollision::UCustomParticleModuleCollision’: inconsistent dll linkage Snow2 F:\Programfiles\Snow2\Intermediate\Build\Win64\UE4Editor\Inc\Snow2\CustomParticleModuleCollision.gen.cpp 23
Error C4273 ‘UCustomParticleModuleCollision::UCustomParticleModuleCollision’: inconsistent dll linkage Snow2 F:\Programfiles\Snow2\Intermediate\Build\Win64\UE4Editor\Inc\Snow2\CustomParticleModuleCollision.gen.cpp 60
Error Failed to produce item: F:\Programfiles\Snow2\Binaries\Win64\UE4Editor-Snow2-4889.dll Snow2 F:\Programfiles\Snow2\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command “F:\UE_4.17\Engine\Build\BatchFiles\Build.bat Snow2Editor Win64 Development “F:\Programfiles\Snow2\Snow2.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. Snow2 F:\Programfiles\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44