24-06-2020, 10:23 AM
Hello,
I'm trying to modulate the disk radius every frame. Should be very simple:
public Obi.ObiEmitter haloEmitter;
public Obi.ObiEmitterShapeDisk disk;
void Start()
{
disk.radius = .1f;
}
void Update()
{
disk.radius += .06f;
}
And, indeed, in the inspector the radius increases over time, but the result is not rendered -- it stays at whatever radius is set in the inspector before I enter game mode. In fact, whenever I set the radius in script, the result is not rendered, even if I simply assign it a value in Start(). Any suggestions?
I'm trying to modulate the disk radius every frame. Should be very simple:
public Obi.ObiEmitter haloEmitter;
public Obi.ObiEmitterShapeDisk disk;
void Start()
{
disk.radius = .1f;
}
void Update()
{
disk.radius += .06f;
}
And, indeed, in the inspector the radius increases over time, but the result is not rendered -- it stays at whatever radius is set in the inspector before I enter game mode. In fact, whenever I set the radius in script, the result is not rendered, even if I simply assign it a value in Start(). Any suggestions?