Fixed the bug that UTSRenderPassSettings using editor only api during runtime.
This commit is contained in:
@@ -79,9 +79,11 @@ namespace Misaki.HdrpToon
|
||||
#endif
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public static SerializedObject GetSerializedSettings()
|
||||
{
|
||||
return new(GetOrCreateSettings());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user