mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 20:08:53 -05:00
Merge pull request #1095 from Santarh/nullAccess
fix MissingReferenceException
This commit is contained in:
@@ -66,7 +66,10 @@ namespace UniGLTF
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(this.gameObject);
|
||||
if (this != null && this.gameObject != null)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(this.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user