Upload project file

This commit is contained in:
Misaki
2024-08-15 17:00:11 +09:00
parent 684c51a8c0
commit e441bb7911
162 changed files with 63084 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using UnityEditor;
using UnityEditor.Rendering.HighDefinition;
using UnityEngine;
namespace Unity.Toonshader.Editor
{
[CustomPassDrawerAttribute(typeof(UTSOutlinePass))]
public class UTSOutlinePassEditor : CustomPassDrawer
{
SerializedProperty m_RenderQueueType;
SerializedProperty m_SortingCriteria;
SerializedProperty m_LayerMask;
protected override void Initialize(SerializedProperty customPass)
{
m_RenderQueueType = customPass.FindPropertyRelative("renderQueueType");
m_SortingCriteria = customPass.FindPropertyRelative("sortingCriteria");
m_LayerMask = customPass.FindPropertyRelative("layerMask");
}
protected override void DoPassGUI(SerializedProperty customPass, Rect rect)
{
EditorGUI.BeginProperty(rect, new GUIContent("Queue", "Filter the render queue range you want to render."), m_RenderQueueType);
EditorGUI.PropertyField(rect, m_RenderQueueType, new GUIContent("Queue", "Filter the render queue range you want to render."));
EditorGUI.EndProperty();
rect.y += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing;
EditorGUI.PropertyField(rect, m_SortingCriteria, new GUIContent("Sorting Criteria", "Sorting settings used to render objects in a certain order."));
rect.y += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing;
EditorGUI.PropertyField(rect, m_LayerMask, new GUIContent("Layer Mask", "Chose the Callback position for this render pass object."));
rect.y += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing;
}
protected override float GetPassHeight(SerializedProperty customPass)
{
return (EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing) * 3;
}
}
}