I’ve made a light with a plugin inside the editor nothing too fancy
APointLight* MLight = World->SpawnActor<APointLight>(FVector(0, 0, 300), MActorRotation, SpawnInfo);
...
ULightComponent* LightComponent = Cast<ULightComponent>(MLight->GetLightComponent());
...
blablabla
I’ve tried to add an ies to it with (the .ies file was already loaded ok)
UObject *lpobj = StaticLoadObject(UTextureLightProfile::StaticClass(), NULL, *(lpname));
LightComponent->SetIESTexture(Cast<UTextureLightProfile>(lpobj));
But it didn’t work, my surprise is that a light created throught code doesn’t allow to add an ies file even manually I mean in the editor.
This could be a bug or my fault?
Thank you in advance