public GameObject GetPrefabReplacement(string type)
        {
            var replacement = PrefabReplacements.FirstOrDefault(r => r.m_TypeName == type);

            if (replacement != null)
            {
                return(replacement.m_Prefab);
            }

            return(null);
        }
 public void AddObjectsToPrefabReplacements()
 {
     RefreshCustomObjectTypes();
     foreach (var cot in m_CustomObjectTypes)
     {
         if (!PrefabReplacements.Any(c => string.Equals(c.m_TypeName, cot.m_Name, StringComparison.OrdinalIgnoreCase)))
         {
             PrefabReplacements.Add(new TypePrefabReplacement {
                 m_TypeName = cot.m_Name
             });
         }
     }
 }