RVOSimulatorEditor.cs 717 B

123456789101112131415161718192021222324
  1. using UnityEditor;
  2. using UnityEngine;
  3. namespace Pathfinding {
  4. [CustomEditor(typeof(Pathfinding.RVO.RVOSimulator))]
  5. public class RVOSimulatorEditor : EditorBase {
  6. protected override void Inspector () {
  7. PropertyField("desiredSimulationFPS");
  8. ClampInt("desiredSimulationFPS", 1);
  9. EditorGUI.BeginDisabledGroup(Application.isPlaying);
  10. PropertyField("movementPlane");
  11. PropertyField("workerThreads");
  12. if ((ThreadCount)FindProperty("workerThreads").intValue != ThreadCount.None) {
  13. EditorGUI.indentLevel++;
  14. PropertyField("doubleBuffering");
  15. EditorGUI.indentLevel--;
  16. }
  17. EditorGUI.EndDisabledGroup();
  18. PropertyField("symmetryBreakingBias");
  19. PropertyField("drawObstacles");
  20. }
  21. }
  22. }