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

18 lines
420 B
C#
Raw Normal View History

2024-06-03 18:26:03 +00: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
}
}
}