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?
Tick is not called on actor extending Light?
- PrinceOfFunky
- Godlike
- Posts: 1200
- Joined: Mon Aug 31, 2015 10:31 pm
Tick is not called on actor extending Light?
"Your stuff is known to be buggy and unfinished/not properly tested"
-
- Masterful
- Posts: 577
- Joined: Tue Jun 20, 2017 1:00 pm
- Personal rank: ⚋⚊⚌☰⚞⌖⚟☰⚌⚊⚋
Re: Tick is not called on actor extending Light?
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.
So, in your own actor, all you have to do is to set bStatic=False in the default properties.
- PrinceOfFunky
- Godlike
- Posts: 1200
- Joined: Mon Aug 31, 2015 10:31 pm
Re: Tick is not called on actor extending Light?
Oh thanks I didn't know it.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.
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;
EDIT 2: Oh damnn, it's a dynamic array, saddd :<
"Your stuff is known to be buggy and unfinished/not properly tested"