Possible bug in the radius and color of the lights - COULD NOT REPLICATE
by Manuel M · in Torque 3D Professional · 06/30/2011 (7:57 pm) · 0 replies
This is a possible bug.
I'm tried to change the color and radius of a light (from console), but do not works, it's only works when I select the light in World Editor or when I clicked on the color box.
My steps:
1. Run my scene in the world editor.
2. I clicked on "play game".
3. I open the console and input: OffLight(Light1);
4. Radius and color is not change.
5. I pressed F11 and return to world editor.
6. I clicked on the light gizmo for select it and I click the color box.
7. The light radius and color change in this moment without change the color or some option in world editor.
The function that I have used is:
I'm tried to change the color and radius of a light (from console), but do not works, it's only works when I select the light in World Editor or when I clicked on the color box.
My steps:
1. Run my scene in the world editor.
2. I clicked on "play game".
3. I open the console and input: OffLight(Light1);
4. Radius and color is not change.
5. I pressed F11 and return to world editor.
6. I clicked on the light gizmo for select it and I click the color box.
7. The light radius and color change in this moment without change the color or some option in world editor.
The function that I have used is:
function OffLight(%light)
{
//Turn off the light
//%light.setLightEnabled(false); //This works fine
%light.radius = "10";
%light.color = "200 0 0 1";
}