MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

SingleInstance.OnDestroy should be virtual.

Open timGerken opened this issue 9 years ago • 4 comments

https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/57a18910669daec4f5328480719a66bea04fa2c2/Assets/HoloToolkit/Utilities/Scripts/SingleInstance.cs#L35

OnDestroy should be marked as virtual, otherwise it hijacks my script's ability to handle OnDestroy to do its own cleanup.

timGerken avatar Sep 21 '17 22:09 timGerken

Agreed, although I thought it was already virtual.

StephenHodgson avatar Sep 22 '17 01:09 StephenHodgson

Hey @timGerken, in the future please be sure to open a Pull Request, so we can track this better.

Thanks.

StephenHodgson avatar Sep 22 '17 17:09 StephenHodgson

sigh, @StephenHodgson , though I was pushing to my fork instead of directly here. Not sure how to undo that action... @keveleigh ?

timGerken avatar Sep 22 '17 17:09 timGerken

It's no worries, I've done the same before.

StephenHodgson avatar Sep 22 '17 17:09 StephenHodgson