blob: a2416dcf73c64873dd3c6b7cd2abf31cd5220310 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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");
}
}
}
|