public static extern void SmartReset(Object obj);
[MethodImpl(MethodImplOptions.InternalCall)]
void ResetLightingSettings(object userData, string[] options, int selected) { if (Lightmapping.lightingSettingsInternal != null) { Undo.RecordObjects(new[] { Lightmapping.lightingSettingsInternal }, "Reset Lighting Settings"); Unsupported.SmartReset(Lightmapping.lightingSettingsInternal); } }