mattrdowney / planetaria

A Unity framework for Euclidean 2-sphere games (e.g. 2D virtual reality games) [quasi-MIT license]
Other
10 stars 2 forks source link

Arcs are being garbage collected in the editor #5

Closed mattrdowney closed 7 years ago

mattrdowney commented 7 years ago

E.g. when I look at Visual Studio (doesn't seem to be an issue until I "leave" Unity as the active window).

mattrdowney commented 7 years ago

Further note: None (Arc) in the List seems to imply they were incorrectly instantiated, so GCed might be the wrong terminology since the whole thing was undefined behavior to begin with.

mattrdowney commented 7 years ago

Fixed as of master - e41c995.

Methodology: switched Arc : UnityEngine.Object to Arc : UnityEngine.ScriptableObject (because the former is undefined behavior).