-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 13 additions & 4 deletions
17
src/UniRecast.Unity/Assets/Plugins/UniRecast/Editor/UniRcOffMeshConnectionToolEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
using UniRecast.Runtime.Toolsets; | ||
using Plugins.UniRecast.Extensions; | ||
using UniRecast.Runtime.Toolsets; | ||
using UnityEditor; | ||
|
||
namespace UniRecast.Editor | ||
{ | ||
[CustomEditor(typeof(UniRcOffMeshConnectionTool))] | ||
public class UniRcOffMeshConnectionToolEditor : UniRcToolEditor | ||
{ | ||
protected override void Layout() | ||
private SerializedProperty _bidir; | ||
|
||
private void OnEnable() | ||
{ | ||
UniRcGui.Text(this.GetType().Name); | ||
UniRcGui.Separator(); | ||
_bidir = serializedObject.FindPropertySafe(nameof(_bidir)); | ||
} | ||
|
||
protected override void Layout() | ||
{ | ||
UniRcGui.RadioButton("One Way", _bidir, 0); | ||
UniRcGui.RadioButton("Bidirectional", _bidir, 1); | ||
|
||
serializedObject.ApplyModifiedProperties(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters