ProjectDDD/Packages/com.arongranberg.astar/Editor/Inspectors/AIDestinationSetterEditor.cs
2025-07-08 19:46:31 +09:00

18 lines
420 B
C#

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