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

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

Post by VoodooDetective »

I tried out that change, but with or without it, whenever I mouse over the dialogue editor (not even clicking) it changes the directory.


BUT I did comment this line:

Code: Select all

if ((value != null) && (instance != null)) Selection.activeObject = DialogueEditorWindow.instance.database;
And that stopped it.
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 »

Thanks! I'll make sure an appropriate fix is in the next release. (Maybe the one you posted? I need to do a bit of digging.)
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 »

Ah just realized why that code was there.
Without it, the inspector doesn't inspect the conversations you click on. I wonder if there's a way to inspect the database without selecting it in the project window. I'm going to ask on Unity forums. Maybe there's a magic method I don't know about.
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 »

What it should be doing is checking that the Dialogue Editor window is the focused window before stealing back the active selection. I'll try to put together a fix tomorrow.
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 »

Oh that makes sense to me. Cool!
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 »

Can I confirm with you that this only happens when you click in the Dialogue Editor window's Conversations canvas area?
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 »

Actually there was a spell when it would happen even if I just moused over the window, but it's inconsistent. Most of the time it's just clicking.

I swear there are times when it gets into a state where if I create a new file, it'll cause the jump to the database.

I'm trying out that patch you sent now. I'll let you know if I run into it once I start coding today.
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 doesn't address the issue you're seeing, if possible please let me know what steps can reproduce the issue.
Post Reply