using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace UnityEngine.UCMobile { using Settings = MoveToTarget.Settings; [UCMobileEditorAttribute(typeof(MoveToTarget))] public class MoveToTargetEditor : UCMobileModelEditor { SerializedProperty Move_target; SerializedProperty smooth; SerializedProperty slow_down_range; public override void OnEnable() { title = "MoveToTarget"; smooth = FindSetting((Settings x) => x.smooth); slow_down_range = FindSetting((Settings x) => x.slow_down_range); Move_target = FindSetting((Settings x) => x.target); } public override void OnInspectorGUI() { EditorGUILayout.PropertyField(Move_target); EditorGUILayout.PropertyField(slow_down_range); EditorGUILayout.PropertyField(smooth); } } }