public void Dispose() { Instance = null; Loaded.Dispose(); Thread.Abort(); return; }
void SetModel(RuntimeGltfInstance instance) { // cleanup if (m_loaded != null) { m_loaded.Dispose(); m_loaded = null; } instance.ShowMeshes(); instance.EnableUpdateWhenOffscreen(); m_loaded = new Loaded(instance, m_src, m_target.transform); }
void SetModel(RuntimeGltfInstance instance) { // cleanup if (m_loaded != null) { m_loaded.Dispose(); m_loaded = null; } if (m_useFastSpringBone.isOn) { FastSpringBoneReplacer.ReplaceAsync(instance.Root); } instance.EnableUpdateWhenOffscreen(); instance.ShowMeshes(); m_loaded = new Loaded(instance, m_src, m_target.transform); }