Skip to content

Commit

Permalink
@ WaterProjectSettingsEditor, allowing Resource loader to provide set…
Browse files Browse the repository at this point in the history
…tings, instead of forcing the path
  • Loading branch information
OndrejPetrzilka committed Jul 16, 2023
1 parent 173592c commit e615633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/WaterProjectSettingsEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static void SetQualityLevel(int index, bool unique)
private static WaterProjectSettings GetOrCreateSettings()
{
if(WaterProjectSettings.Instance != null) return WaterProjectSettings.Instance;
var settings = AssetDatabase.LoadAssetAtPath<WaterProjectSettings>(SettingsConsts.FullBuildPath);
var settings = UnityEngine.Resources.Load<WaterProjectSettings>(SettingsConsts.AssetString);
if (settings != null) return settings;

Debug.Log("Making new WaterProjectSettings asset");
Expand Down

0 comments on commit e615633

Please sign in to comment.