[SOLVED] Dialogue Nodes overlapping when Editor Window changes

Hi,

Is there a way to stop the Dialogue Nodes all reverting to their starting position in the top left corner when the Dialogue Editor Window changes size? I redocked my Editor after using it at a larger size for a while and all of the nodes were in the top corner and had to be dragged back out again. This happened to every Dialogue.

Thanks

Edit -
Sorry I completely missed your reply! That was indeed the problem thank you :slight_smile:

Hmmm that seems odd… It definitely shouldn’t be doing that.

Just to be sure I docked and redocked the course version several times and wasn’t able to duplicate this. The only thing I can think of is the possibility that the Rect isn’t Serialized.

[SerializeField] Rect rect = new Rect(0,0,200,100);

If it’s not serialized, the Rect will stay in memory while the editor is stationary, but will lose it’s value when the editor is destroyed. (Behind the scenes, when an EditorWindow is redocked, it is destroyed and started again using the serialized values at the time it’s moved)

1 Like

This topic was automatically closed after 23 hours. New replies are no longer allowed.

Privacy & Terms