Fixed the bug that UTSRenderPassSettings using editor only api during runtime.

This commit is contained in:
2025-05-21 17:08:03 +09:00
parent b1ef8afc8d
commit 84ad8ef993
2 changed files with 3 additions and 1 deletions

View File

@@ -79,9 +79,11 @@ namespace Misaki.HdrpToon
#endif
}
#if UNITY_EDITOR
public static SerializedObject GetSerializedSettings()
{
return new(GetOrCreateSettings());
}
#endif
}
}