Issue: Always jumps to root folder when clicking dialogue window
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
Issue: Always jumps to root folder when clicking dialogue window
I've noticed that when I have an item selected in the project window, if I click on the dialogue window, the project window will automatically jump to the root folder.
I'm also noticing similar behavior when I create a new file, but I'm not sure if that's related to DSU. Just wanted to bring it up in case this has something to do with DSU, or if it's something else.
I'm also noticing similar behavior when I create a new file, but I'm not sure if that's related to DSU. Just wanted to bring it up in case this has something to do with DSU, or if it's something else.
Re: Issue: Always jumps to root folder when clicking dialogue window
Hi,
Do you mean the root Assets folder?
I'm not sure it's related to the Dialogue System, but I can take a look if you want to provide more details. What version of the Dialogue System are you using?
Do you mean the root Assets folder?
I'm not sure it's related to the Dialogue System, but I can take a look if you want to provide more details. What version of the Dialogue System are you using?
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
Re: Issue: Always jumps to root folder when clicking dialogue window
Yep the project window will jump to the asset folder for me. I'm using 2.2.7 and just realized there's a new version out! I'll have to upgrade and see if that helps.
Re: Issue: Always jumps to root folder when clicking dialogue window
If it's still happening in 2.2.8, is your dialogue database asset in the Assets folder? The Dialogue Editor can in some cases be a little aggressive about showing its content in the Inspector view when switching into and out of play mode, but it shouldn't jump the Project view to the Assets folder for no reason.
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
Re: Issue: Always jumps to root folder when clicking dialogue window
Ahh I'm so sorry, I misread my folder structure. You're correct, it's actually jumping to the folder that contains my asset database.
Re: Issue: Always jumps to root folder when clicking dialogue window
Got it. If it's what I think it is, that's a known issue, and admittedly a slightly annoying one. It's on my list to address in 2.2.9.
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
Re: Issue: Always jumps to root folder when clicking dialogue window
Ahhh ok that's really good to know. I was just about to start digging into it, but I'll hold off. I was having trouble figuring out what was reproducing it until today. I'm just glad it's not a platform bug or something.
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
Re: Issue: Always jumps to root folder when clicking dialogue window
Just wanted to confirm the problem is still present in 2.2.8. Would you mind sharing the location of the code that does the folder changing? I'd like to disable it completely if possible. I don't mind that it changes the folder when I click the dialogue editor, but it sometimes gets in a state where it'll change folder if I create a new asset of any kind and that becomes a real pain when I'm creating a bunch of files.
Just confirmed the problem goes away if I close the dialogue editor.
Just confirmed the problem goes away if I close the dialogue editor.
Re: Issue: Always jumps to root folder when clicking dialogue window
You may be able to temporarily disable that behavior by editing DialogueEditorWindowMain.cs and adding this line to the beginning of the SelectObject method, which is on line 211:
Code: Select all
public void SelectObject(UnityEngine.Object obj)
{
if (EditorWindow.focusedWindow != instance) return; //<-- ADD THIS LINE.
var newDatabase = obj as DialogueDatabase; ...etc....
-
- Posts: 222
- Joined: Wed Jan 22, 2020 10:48 pm
Re: Issue: Always jumps to root folder when clicking dialogue window
Awesome, I'll try it out, thank you!