Changed the outline layer and hair shadow caster layer from LayerMask to RenderingLayerMask;

This commit is contained in:
Misaki
2024-11-18 01:06:42 +09:00
parent 1f63c6f4cb
commit ae9b32162d
24 changed files with 345 additions and 188 deletions

View File

@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
@@ -22,7 +21,7 @@ namespace Unity.Toonshader.Editor
public override void OnActivate(string searchContext, VisualElement rootElement)
{
_customSettings = UTSRenderPassSetting.GetSerializedSettings();
_customSettings = UTSRenderPassSettings.GetSerializedSettings();
}
public override void OnGUI(string searchContext)
@@ -41,7 +40,7 @@ namespace Unity.Toonshader.Editor
public static bool IsSettingsAvailable()
{
return File.Exists(UTSRenderPassSetting.RENDERER_SETTING_ASSET_PATH);
return EditorBuildSettings.TryGetConfigObject<UTSRenderPassSettings>(UTSRenderPassSettings.UTS_RENDERING_SETTINGS_NAME, out _);
}
[SettingsProvider]