Page 1 of 2
Issue: Always jumps to root folder when clicking dialogue window
Posted: Tue Aug 04, 2020 4:18 pm
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.
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Tue Aug 04, 2020 8:56 pm
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?
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Tue Aug 04, 2020 9:06 pm
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.
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Tue Aug 04, 2020 9:19 pm
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.
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Tue Aug 04, 2020 9:58 pm
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.
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Tue Aug 04, 2020 10:21 pm
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.
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Tue Aug 04, 2020 11:42 pm
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.
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Wed Aug 05, 2020 3:41 pm
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.
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Wed Aug 05, 2020 3:51 pm
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....
Re: Issue: Always jumps to root folder when clicking dialogue window
Posted: Wed Aug 05, 2020 4:54 pm
by VoodooDetective
Awesome, I'll try it out, thank you!