mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-26 00:29:19 -05:00
ClearScene
This commit is contained in:
parent
703c58e165
commit
502895c56e
|
|
@ -99,6 +99,17 @@ namespace UniVRM10
|
|||
m_renderer.Dispose();
|
||||
m_renderer = null;
|
||||
}
|
||||
ClearScene();
|
||||
}
|
||||
|
||||
protected virtual void OnDestroy()
|
||||
{
|
||||
// 2018/2019 で OnDisable/OnDestroy の呼ばれ方が違う?
|
||||
ClearScene();
|
||||
}
|
||||
|
||||
void ClearScene()
|
||||
{
|
||||
if (m_scene != null)
|
||||
{
|
||||
//Debug.LogFormat("OnDestroy");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user