C++ Change Value Actor Reference from another c++ actor reference , value change, object in level no, Why?

CrashAngel
Mon, 22 Nov 2021 16:02:52 +0000
C++

Hi,

Hello, I’m trying to modify an actor in the scene and I created a function adding, for example, a SpotLight and a float variable, taking the object’s reference and setting the intensity… When I create the blueprint of my c++ and put it in the level, modifying the parameter float I can change the light intensity on the level…

Now I created another c++ file of type actor also taking the reference of this first actor, and creating another parameter of type float modifying the float of the first actor and not the intensity of Spot Light, all in construction script… It shouldn’t change automatically the light intensity of the first object?

2 posts - 1 participant