Files
com.misaki.hdrp-toon/Editor/Inspector/View/BoxLightAdjustmentView.cs
Misaki 52469649de Fixed the bug from shader gui drawer : [Worker0] Failed to create MaterialEnum, enum UnityEditor.Rendering.HighDefinition.TransparentCullMode not found;
Fixed the bug that outline does not rendering when material type is set to transparent;
Fixed the bug that hair shadow buffer does not rendering the object that material type is set to transparent;
2024-11-19 00:26:28 +09:00

33 lines
788 B
C#

using Unity.Rendering.HighDefinition.Toon;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
namespace Unity.Toonshader.Editor
{
[CustomEditor(typeof(BoxLightAdjustment))]
public class BoxLightAdjustmentView : UnityEditor.Editor
{
[SerializeField]
private VisualTreeAsset _visualTreeAsset;
public override VisualElement CreateInspectorGUI()
{
if (_visualTreeAsset == null)
{
return base.CreateInspectorGUI();
}
var root = new VisualElement
{
dataSource = target
};
var visualTreeElement = _visualTreeAsset.Instantiate();
root.Add(visualTreeElement);
return root;
}
}
}