Method CreateLight
CreateLight(string, LightType, Color, double, double, uint)
Create an occurrence with a light component
Declaration
public uint CreateLight(string name, LightType lightType, Color color, double power = 1, double cutOff = 20, uint parent = 0)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the light |
LightType | lightType | The type of the light |
Color | color | Color of the light |
double | power | The power of the light |
double | cutOff | The cutoff angle of the light |
uint | parent | The parent of the light occurrence |
Returns
Type | Description |
---|---|
uint |