I don’t know if this is your problem, but you forgot the * on USphereComponent.
OS : Windows 7//
Visual Studio 2015//
UE 4.10 Release
if i add line (like Uploaded Picture)
UPROPERTY(EditDefaultsOnly, Category = APowerup)
TSubobjectPtrDeprecated TouchSphere;
and… I build…
Compiler makes Some error(like Uploaded Pic too)
I cant’s understand why some error appear…
How can I do that
help me…plz…
Don’t use TSubObjectPtr. Just use regular pointers.
UPROPERTY(stuff)
USphereComponent* TouchSphere
Also, use the output window in VS, not the error window. The error window is utterly useless.
output Error window also is same message like error window
so I dont know What error is.
and…
Why I can’t use “EditDefaultsOnly” macro.
should i install some additional Utility?
If i typing “EditDefaultsOnly”(VisibleDefaultsOnly too)
there is no macro
also Text Color is black not purple.
here is Ouput Error message
2> Running UnrealHeaderTool “C:\Users\ad\Documents\Unreal Projects\SideScroller\SideScroller.uproject” “C:\Users\ad\Documents\Unreal Projects\SideScroller\Intermediate\Build\Win64\SideScrollerEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed
2> C:/Users/ad/Documents/Unreal Projects/SideScroller/Source/SideScroller/Powerup.h(29) : Member variable declaration: Missing variable type
2>Error : Failed to generate code for SideScrollerEditor - error code: OtherCompilationError (5)
2> UnrealHeaderTool failed for target ‘SideScrollerEditor’ (platform: Win64, module info: C:\Users\ad\Documents\Unreal Projects\SideScroller\Intermediate\Build\Win64\SideScrollerEditor\Development\UnrealHeaderTool.manifest).
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: ““C:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat” SideScrollerEditor Win64 Development “C:\Users\ad\Documents\Unreal Projects\SideScroller\SideScroller.uproject” -rocket -waitmutex -2015” 명령이 종료되었습니다(코드: -1).
VS is very bad at UE4. It just can’t handle it. Don’t rely on VS to do all the work for you, like good highlighting and autocomplete. It just won’t work.
C:/Users/ad/Documents/Unreal Projects/SideScroller/Source/SideScroller/Powerup.h(29) : Member variable declaration: Missing variable type
this is your problem.
Did you add in the UPROPERTY line, but not the variable line?
thank you for your answer
god…
I add the * on USphereComponent.
and Success Building…
thank you for your kindT_T
have a nice day.