Skip to content

Setting MediaPlayer.Media to null immediately hard-crashes Unity

If you ever set MediaPlayer.Media to null, that immediately causes a hard editor crash, even if the MediaPlayer was not playing at all.

At any point: _mediaPlayer.Media = null;