first commit

This commit is contained in:
lethanhsonvsp
2025-11-17 15:36:52 +07:00
commit 6f2eafa33c
14093 changed files with 1253472 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using UnityEditor;
namespace Unity.Splines.Examples.Editor
{
[CustomEditor(typeof(LoftRoadBehaviour))]
[CanEditMultipleObjects]
class SplineWidthEditor : UnityEditor.Editor
{
public override void OnInspectorGUI()
{
EditorGUI.BeginChangeCheck();
base.OnInspectorGUI();
if (EditorGUI.EndChangeCheck())
{
EditorApplication.delayCall += () =>
{
foreach (var target in targets)
((LoftRoadBehaviour)target).LoftAllRoads();
};
}
}
}
}