Changed the outline layer and hair shadow caster layer from LayerMask to RenderingLayerMask;
This commit is contained in:
35
Editor/Inspector/View/BoxLightAdjustmentView.cs
Normal file
35
Editor/Inspector/View/BoxLightAdjustmentView.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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 boxLightAdjustment = (BoxLightAdjustment)target;
|
||||
|
||||
var root = new VisualElement
|
||||
{
|
||||
dataSource = target
|
||||
};
|
||||
|
||||
var visualTreeElement = _visualTreeAsset.Instantiate();
|
||||
|
||||
root.Add(visualTreeElement);
|
||||
|
||||
return root;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user