Cant find the reason why im getting this error. It says on SpotLightPicker “pointer to incomplete class type is not allowed”. SpotLightPicker is a UPROPERTY SpotLightActor type. Current is a normal float variable, im trying to get the Spot light VolumetricScatteringIntensity value and set it on Current since its also a float value.
Code:
Current = SpotLightPicker->SpotLightComponent->VolumetricScatteringIntensity;
Is it possible that ASpotLight
is included but not USpotLightComponent
? Then the compiler would know how to handle SpotLightPicker
but not how to access VolumetricScatteringIntensitiy
from SpotLightComponent
in the line you provided. If so, try to also include SpotLightComponent.h
try
#inlcude "Runtime/Engine/Classes/Components/SpotLightComponent.h"
that worked #include “Components/SpotLightComponent.h”. For some reason i though that Spotlight.h already had it so i didnt include it.