EditorPrefs.SetBool(kEditorPrefsName + “.bakeAlpha”, bakeAlpha);
EditorPrefs.SetBool(kEditorPrefsName + “.bakeMainTexAsWhite”,
bakeMainTexAsWhite);
EditorPrefs.SetInt(kEditorPrefsName + “.minTextureResolution”,
minTextureResolution);
EditorPrefs.SetInt(kEditorPrefsName + “.maxTextureResolution”,
maxTextureResolution);
EditorPrefs.GetBool(kEditorPrefsName + “.emptyScene”, emptyScene);
EditorPrefs.SetBool(kEditorPrefsName + “.useCustomLights”,
useCustomLights);
EditorPrefs.SetFloat(kEditorPrefsName + “.ambient.r”, ambient.r);
EditorPrefs.SetFloat(kEditorPrefsName + “.ambient.g”, ambient.g);
EditorPrefs.SetFloat(kEditorPrefsName + “.ambient.b”, ambient.b);
EditorPrefs.SetFloat(kEditorPrefsName + “.ambient.a”, ambient.a);
for (var q = 0; q < kLights; ++q)
EditorPrefs.SetBool(kEditorPrefsName + “.enableLight” + q,
enableLight[q]);
EditorPrefs.SetFloat(kEditorPrefsName + “.color.r” + q,
colorLight[q].r);
EditorPrefs.SetFloat(kEditorPrefsName + “.color.g” + q,
colorLight[q].g);
EditorPrefs.SetFloat(kEditorPrefsName + “.color.b” + q,
colorLight[q].b);
EditorPrefs.SetFloat(kEditorPrefsName + “.color.a” + q,
colorLight[q].a);
EditorPrefs.SetFloat(kEditorPrefsName + “.dir.x” + q, dirLight[q].x);
EditorPrefs.SetFloat(kEditorPrefsName + “.dir.y” + q, dirLight[q].y);
class BakeMaterial extends EditorWindow
private static var kMateriBakeNodeName = “__MateriaBakeSetup”;