Loading files
using UnityEngine;
using UnityEditor;
namespace Unity.Simulation.VehicleControllers
{
[CanEditMultipleObjects]
[CustomEditor(typeof(AckermannAuthoring))]
public class AckermannAuthoringEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
if (EditorGUI.EndChangeCheck())
{
foreach(var target in targets)
{
var authoringComponent = target as AckermannAuthoring;
Undo.RecordObject(authoringComponent, $"Setup {authoringComponent.name} Vehicle");
authoringComponent.SetupArticulations();
}
}
}
}
}
b8d1e1d4cThis file is pinned to the selected release. Download the original to open it in your design tool.