Issue: Always jumps to root folder when clicking dialogue window

Announcements, support questions, and discussion for the Dialogue System.
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Issue: Always jumps to root folder when clicking dialogue window

Post by VoodooDetective »

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.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by Tony Li »

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?
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by VoodooDetective »

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.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by Tony Li »

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.
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by VoodooDetective »

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.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by Tony Li »

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.
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by VoodooDetective »

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.
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by VoodooDetective »

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.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by Tony Li »

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....
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Re: Issue: Always jumps to root folder when clicking dialogue window

Post by VoodooDetective »

Awesome, I'll try it out, thank you!
Post Reply