You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
956 B

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);
}
}
}