private MotionMatchingEventMarker DrawEventMarker(MotionMatchingEventMarker marker) { GUILayout.Label("Name", GUILayout.Width(40f)); marker.SetName(GUILayout.TextField(marker.GetName(), GUILayout.Width(200))); //marker.SetTime(GUILayout.HorizontalSlider(marker.GetTime(), 0f, editedData.length)); GUILayout.Label("Time", GUILayout.Width(40f)); marker.SetTime(Mathf.Clamp(EditorGUILayout.FloatField(marker.GetTime(), GUILayout.Width(50f)), 0f, editedData.animationLength)); return(marker); }