public override void SavePref() { EditorPrefs.SetBool(FormKey("enabled"), this.enabled); EditorPrefs.SetString(FormKey("prefix"), this.prefix); HierarchyUtil.SetColor(FormKey("color"), this.color); EditorPrefs.SetBool(FormKey("drawFill"), this.drawFill); }
public override void SavePref() { EditorPrefs.SetBool(FormKey("enabled"), this.enabled); // Bar { EditorPrefs.SetBool(FormKey("colorizedLine"), this.colorizedLine); EditorPrefs.SetFloat(FormKey("lineAlpha"), this.lineAlpha); EditorPrefs.SetFloat(FormKey("lineWidth"), this.lineWidth); } // Item { EditorPrefs.SetBool(FormKey("colorizedItem"), this.colorizedItem); EditorPrefs.SetInt(FormKey("drawMode"), (int)this.drawMode); EditorPrefs.SetFloat(FormKey("gradientLength"), this.gradientLength); HierarchyUtil.SetColor(FormKey("baseLevelColor"), this.baseLevelColor); { this.branchesLen = this.branches.Length; EditorPrefs.SetInt(FormKey("branches.Length"), this.branchesLen); for (int index = 0; index < branches.Length; ++index) { HierarchyUtil.SetColor(FormKey("branches" + index), instance.branches[index]); } } EditorPrefs.SetFloat(FormKey("overlayAlpha"), this.overlayAlpha); } // Divider { HierarchyUtil.SetColor(FormKey("dividerColor"), this.dividerColor); EditorPrefs.SetFloat(FormKey("dividerHeight"), this.dividerHeight); } }
public override void SavePref() { EditorPrefs.SetBool(FormKey("enabled"), this.enabled); EditorPrefs.SetBool(FormKey("enabledText"), this.enabledText); HierarchyUtil.SetColor(FormKey("textColorUntagged"), this.textColorUntagged); HierarchyUtil.SetColor(FormKey("textColor"), this.textColor); EditorPrefs.SetBool(FormKey("enabledItem"), this.enabledItem); HierarchyUtil.SetDictionary(FormKey("itemColors"), this.itemColors); HierarchyUtil.SetData(FormKey("gradientLength"), this.gradientLength); HierarchyUtil.SetData(FormKey("invertDirection"), this.invertDirection); }
public override void SavePref() { EditorPrefs.SetBool(FormKey("enabled"), this.enabled); HierarchyUtil.SetColor(FormKey("color"), this.color); }