- Home /
Keeping state that cannot be serialized between play mode for EditorWindow
I have seen this http://answers.unity3d.com/questions/317057/how-to-restore-editorwindow-property-after-playmod.html I understand that I cannot keep state between entering/exiting Play mode. The window gets serialized and loaded again.
I am creating a simple logger tool that connects with socket to device and streams logs back. Where and how should I keep my Socket instance so I can preserver it between play mode enter/exit?
Answer by ZammyIsOnFire · May 20, 2015 at 02:10 PM
Same question: http://answers.unity3d.com/questions/400321/keep-network-socket-open-during-play-mode-recompil.html
Your answer
Follow this Question
Related Questions
How to change a selection effect in editor 0 Answers
Create inspector drop-down button based on the content of a list in editor mode 1 Answer
Mark gameobject field as changed from prefab 2 Answers
Custom Inspector: Accessing a reference to another MonoBehaviour? 1 Answer
Unity inspector scripting - scriptable objects - card game 0 Answers