Tim Gerken
Tim Gerken
should Awake and OnDestroy be marked as "protected" instead of "public"
I've also seen this pattern, in the `(instance != null)` case in Awake() call `DestroyImmediate(this)` just to be sure.
Should this Singleton pattern survive Unity scene transitions? If so, in Awake, it should also call `DontDestroyOnLoad(this);`
Tagalong builds on SimpleTagalong (which honors EnforceDistance). Tagalong forces this to false because it attempts to respect other holograms in the scene (including spatial mapping). When EnforceDistance is true, the...
sigh, @StephenHodgson , though I was pushing to my fork instead of directly here. Not sure how to undo that action... @keveleigh ?
The fix is unfortunately incomplete. Works great at runtime, but not so great in playmode in the editor where it returns prefabs as well. Need to figure out how to...
if [`Object.FindObjectsOfTypeAll(Type type)`](https://docs.unity3d.com/ScriptReference/Object.FindObjectsOfTypeAll.html) weren't marked as 'obsolete', I'd recommend using that. I still think of this is a bug. Another alternative fix might be to allow for there to be...
Additionally, `._Instance` is set the first time that `.Instance` finds the `` it is looking for. It will continue to return that value, even if the GameObject it is attached...
The spew for having >1 still seems valid, though.
In the event the SingleInstance is on a disabled game object (to start with), Instance should allow for finding zero instances (without spamming the console window).