Page 1 of 1

Unity Scene (dirty) Issue

Posted: Mon Apr 25, 2022 1:04 pm
by HawkX
Hi! :)

I assume you have already come across this issue...
and perhaps its more of a bug with Unity than it is with the Dialogue System even though it seems somewhat related...

However, I noticed that whenever I open a scene that contains one of the NPC with the components :
"Dialogue System Trigger", "Dialogue Actor", "Usable"

then the scene is immediately marked as "dirty" (like something was changed) even though nothing was...

Hope you are doing great! thanks as always and have a nice day! :)

Re: Unity Scene (dirty) Issue

Posted: Mon Apr 25, 2022 1:35 pm
by Tony Li
I'll check that. Usually the culprit is a UI with a layout element (e.g., Layout Element, Vertical Layout Group, Content Size Fitter, etc.).

What version of Unity are you using?

Re: Unity Scene (dirty) Issue

Posted: Mon Apr 25, 2022 5:09 pm
by HawkX
yeah thats what i saw when checking online...
but i disabled all 3 NPC and it seemed to fix it...
2 of them do have a UI Selector which have a canvas, canvas group, raycaster, face camera, standard usable ui script
and a ui image below that as a child...

beside those, that scene does not even have any canvas or anything UI related at all...

oh and we use 2021.2.11f1

:)

Re: Unity Scene (dirty) Issue

Posted: Mon Apr 25, 2022 6:59 pm
by Tony Li
As a test, try keeping the NPCs enabled, but disable their canvases and UI stuff. Then save and load the scene to see if Unity marks the scene dirty right away.

Re: Unity Scene (dirty) Issue

Posted: Mon Apr 25, 2022 7:13 pm
by HawkX
Alright i'll test that out tomorrow and report back! :)

Thanks a lot for your insight!


EDIT the next day : Somehow after toggling it back off/on the error stopped happening (for now)...
Sometimes I really despise unity... so many random bugs and errors no matter which version you use...
Anyway! Should it come back, I'll try it out again and write again if its "indeed" because of anything related to the Dialogue System! :)