I’m totally ■■■■■■ off. Anyone can guide me, how can I modify Intensity of PointLight in C++ script? Give my some tips. Thanks in advance.
I write this code but I got an error:
AActor* myActor = GetOwner();
myActor->FindComponentByClass(<UPointLightComponent>)->SetIntensity(0.0f);