static HDProjectSettingsReadOnlyBase CreateOrLoad() { //try load: if it exists, this will trigger the call to the private ctor InternalEditorUtility.LoadSerializedFileAndForget(filePath); //else create if (s_Instance == null) { HDProjectSettingsReadOnlyBase created = CreateInstance <HDProjectSettingsReadOnlyBase>(); created.hideFlags = HideFlags.HideAndDontSave; } return(s_Instance); }
protected HDProjectSettingsReadOnlyBase() { s_Instance = this; }