26 lines
779 B
C#
26 lines
779 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Pathfinding {
|
|
[CustomEditor(typeof(Pathfinding.RVO.RVOSimulator))]
|
|
public class RVOSimulatorEditor : EditorBase {
|
|
static readonly GUIContent[] movementPlaneOptions = new [] { new GUIContent("XZ (for 3D games)"), new GUIContent("XY (for 2D games)"), new GUIContent("Arbitrary (for non-planar worlds)") };
|
|
|
|
protected override void Inspector () {
|
|
Section("Movement");
|
|
Popup("movementPlane", movementPlaneOptions);
|
|
|
|
PropertyField("symmetryBreakingBias");
|
|
PropertyField("hardCollisions");
|
|
PropertyField("useNavmeshAsObstacle");
|
|
|
|
// Section("Execution");
|
|
// PropertyField("desiredSimulationFPS");
|
|
// ClampInt("desiredSimulationFPS", 1);
|
|
|
|
Section("Debugging");
|
|
PropertyField("drawQuadtree");
|
|
}
|
|
}
|
|
}
|