Rare editor bug

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
markov
Posts: 7
Joined: Tue Feb 17, 2015 9:30 pm

Rare editor bug

Post by markov »

Hi. Just encountered a bug:
In the method DialogueSystemController.OnEndConversation you invoke

Code: Select all

RestoreOriginalUI();
And it must do nothing if nobody override UI (by using OverrideUIBase for instance), because

Code: Select all

originalDisplaySettings = null.
BUT if I select DialogueSystemController's game object when inspector is in EDITOR mode, originalDisplaySettings became serialized by Unity and even if it was null it becomes not null because DisplaySettings class marked as serializable.
And then code restores default DisplaySettings which is very bad.

Please, mark originalDisplaySettings with [HideInInspector], the thing is very rare and someone car run into it only in editor. But coder may spend hours (as me) to resolve its consequences.
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: Rare editor bug

Post by Tony Li »

This you for reporting this bug. I'll fix it and post a patch. I'm sorry about the trouble it caused.
Post Reply