Page 1 of 1

Tick is not called on actor extending Light?

Posted: Tue Dec 12, 2017 11:59 pm
by PrinceOfFunky
I'm trying to log the LightHue of an actor extending Light at every Tick, but it won't work :/ I tried enabled Tick in PostBeginPlay but still nothing.
Is Tick() disabled after PostBeginPlay on a Light?

Re: Tick is not called on actor extending Light?

Posted: Wed Dec 13, 2017 1:23 am
by nogardilaref
It's not because it's a Light specially, it's because Tick is disabled in bStatic=True actors, and it happens that Light is bStatic=True by default.
So, in your own actor, all you have to do is to set bStatic=False in the default properties. :)

Re: Tick is not called on actor extending Light?

Posted: Wed Dec 13, 2017 2:13 am
by PrinceOfFunky
nogardilaref wrote:It's not because it's a Light specially, it's because Tick is disabled in bStatic=True actors, and it happens that Light is bStatic=True by default.
So, in your own actor, all you have to do is to set bStatic=False in the default properties. :)
Oh thanks I didn't know it.

So LightHue doesn't change if using LT_TexturePalette? Does it mean the texture is projected like on decals, just one pixel at a time? Sad lol, I thought I could get pixel values of a texture.
EDIT: But I see Palette contains an array of pixels(Colors):

Code: Select all

var native const array<Color> Colors;
And Texture contains a Palette variable /o\.
EDIT 2: Oh damnn, it's a dynamic array, saddd :<