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 #endif
} }
#if UNITY_EDITOR
public static SerializedObject GetSerializedSettings() public static SerializedObject GetSerializedSettings()
{ {
return new(GetOrCreateSettings()); return new(GetOrCreateSettings());
} }
#endif
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "com.misaki.hdrp-toon", "name": "com.misaki.hdrp-toon",
"version": "2.1.0", "version": "2.1.1",
"displayName": "HDRP Toon", "displayName": "HDRP Toon",
"description": "A high quality toon shader for High Definition Render Pipeline(HDRP)", "description": "A high quality toon shader for High Definition Render Pipeline(HDRP)",
"changelogUrl": "https://git.personalnas.com/Misaki/hdrp-toon/src/branch/develop/CHANGELOG.md", "changelogUrl": "https://git.personalnas.com/Misaki/hdrp-toon/src/branch/develop/CHANGELOG.md",