Unity Scene (dirty) Issue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
HawkX
Posts: 147
Joined: Mon Feb 27, 2017 1:50 pm
Location: Quebec
Contact:

Unity Scene (dirty) Issue

Post 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! :)
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Scene (dirty) Issue

Post 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?
User avatar
HawkX
Posts: 147
Joined: Mon Feb 27, 2017 1:50 pm
Location: Quebec
Contact:

Re: Unity Scene (dirty) Issue

Post 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

:)
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity Scene (dirty) Issue

Post 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.
User avatar
HawkX
Posts: 147
Joined: Mon Feb 27, 2017 1:50 pm
Location: Quebec
Contact:

Re: Unity Scene (dirty) Issue

Post 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! :)
Post Reply