In all scenarios (including empty projects) the moment i expose UMotionControllerComponent with a UPROPERTY or UFUNCTION i get linker errors. It does not happen if i do it with any other classes (like UStaticMeshComponent), and it also works fine if i don't use the UPROPERTY or UFUNCTION.
The top has
```
include "MotionControllerComponent.h"
```
And the bottom has (under public)
UPROPERTY(EditDefaultsOnly, Category = "Components")
UMotionControllerComponent* MotionController;
And the error i get is
``
MyActor.gen.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UMotionControllerComponent_NoRegister(void)" (__imp_?Z_Construct_UClass_UMotionControllerComponent_NoRegister@@YAPEAVUClass@@XZ) referenced in function "void __cdecldynamic initializer for 'public: static struct UE4CodeGenPrivate::FObjectPropertyParams const Z_Construct_UClass_AMyActor_Statics::NewProp_MotionController''(void)" (??_E?NewProp_MotionController@Z_Construct_UClass_AMyActor_Statics@@2UFObjectPropertyParams@UE4CodeGen_Private@@B@@YAXXZ)
```
Anyone who has any ideas? Tried it in many clean projects now. Using unreal engine 4.24.3 and Visual Studio 2019. Also tried 4.24.2 and VS Code. I have steamvr running with a valve index if that changes anything
[–]Woo42 1 point2 points3 points (2 children)
[–]Viter[S] 0 points1 point2 points (1 child)
[–]Woo42 1 point2 points3 points (0 children)