Fix video player shutdown on editor window close
This commit is contained in:
@@ -199,6 +199,8 @@ namespace FlaxEditor.Windows.Assets
|
|||||||
{
|
{
|
||||||
if (IsDisposing)
|
if (IsDisposing)
|
||||||
return;
|
return;
|
||||||
|
_videoPlayer.Stop();
|
||||||
|
Object.Destroy(ref _videoPlayer);
|
||||||
_item.RemoveReference(this);
|
_item.RemoveReference(this);
|
||||||
_item = null;
|
_item = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user