基本的に Unity ではメモリは自動的に管理されていますが、一部の特殊な仕様によってメモリリークのような現象が起きてしまうことがあります。この動画では、その一例である "Leaked Managed Shell" について解説しつつ、Memory Profiler を使ってそれを調べる方法を紹介します。 サンプルプロジェクト - https://github.com/keijiro/ManagedShellTest Memory Profiler 1.1.0 - https://docs.unity3d.com/Packages/com.unity.memoryprofiler@1.1 0:00 イントロ 0:19 Leaked Managed Shell とは 2:24 特別な null の扱い 3:54 Memory Profiler で調べる 5:35 大きなメモリリーク 6:
![Unity でメモリリーク? Memory Profiler で Leaked Managed Shell をチェックしてみよう!](https://cdn-ak-scissors.b.st-hatena.com/image/square/44d064544737e383852bd6dd86a9b29de56b2be3/height=288;version=1;width=512/https%3A%2F%2Fi.ytimg.com%2Fvi%2FUIwQmpQTtA4%2Fhqdefault.jpg)