// Sanity check: lightData.lightTypeExtent is init to LightTypeExtent.Punctual (in case for unknow reasons we recreate additional data on an existing line)
light.type=LightType.Point;// Same as in HDLightEditor
light.lightmapBakeType=LightmapBakeType.Realtime;
// At first init we need to initialize correctly the default value