void OnEnable() { var deferAgent = GetComponent <IDeferAgent>(); if (deferAgent != null) { GltfImport.SetDefaultDeferAgent(deferAgent); } }
void OnEnable() { m_DeferAgent = new UninterruptedDeferAgent(); GltfImport.SetDefaultDeferAgent(m_DeferAgent); }