Navigation tools upgraded to use the new MainToolbarElement API
This commit is contained in:
parent
708b99f763
commit
3e1602162c
52 changed files with 837 additions and 66 deletions
|
|
@ -18,7 +18,12 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
settings = projectSettings.GetValueAs<Settings>();
|
||||
|
||||
sceneGroupList = new SceneGroupReorderableListDrawer(settings.sceneGroups.groups, "Scene groups");
|
||||
|
||||
#if UNITY_6000_3_OR_NEWER
|
||||
sceneGroupList.onChanged += MainToolbarScenePickerElement.Refresh;
|
||||
#else
|
||||
sceneGroupList.onChanged += ToolScenePicker.SetAsDirty;
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Draw()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue