Changed the outline layer and hair shadow caster layer from LayerMask to RenderingLayerMask;
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user