JinChanChan/Packages/com.arongranberg.astar/Editor/Inspectors/AIDestinationSetterEditor.cs

18 lines
420 B
C#
Raw Normal View History

2025-02-26 16:54:54 +08:00
using Pathfinding;
using UnityEditor;
namespace Pathfinding {
[CustomEditor(typeof(AIDestinationSetter), true)]
[CanEditMultipleObjects]
public class AIDestinationSetterEditor : EditorBase {
protected override void Inspector () {
PropertyField("target");
#if MODULE_ENTITIES
if ((target as AIDestinationSetter).GetComponent<FollowerEntity>() != null) {
PropertyField("useRotation");
}
#endif
}
}
}