回答編集履歴
1
タイミングの実験結果について追記
test
CHANGED
@@ -1 +1,3 @@
|
|
1
1
|
[リファレンス](https://docs.unity3d.com/ja/current/ScriptReference/Object.Destroy.html)によれば、破壊が行われるのはUpdate処理後からレンダリング前にかけてのタイミングのようです。
|
2
|
+
|
3
|
+
試してみたところ、[LateUpdate](https://docs.unity3d.com/ja/current/ScriptReference/MonoBehaviour.LateUpdate.html)ではまだ生きているものの、[OnWillRenderObject](https://docs.unity3d.com/ja/current/ScriptReference/MonoBehaviour.OnWillRenderObject.html)ではすでに破壊されているようでした。
|