Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

merge content with same foldername causes problems

Discussion in 'Scripting' started by eleon-games, Oct 6, 2015.

  1. eleon-games

    eleon-games

    Joined:
    Feb 19, 2015
    Posts:
    56
    Hello guys,

    i hope i'm posting in the right forum.

    I have two projects and i want to merge them, but then i get an error.
    Individually they work nice. They have a same folder called plugins with different files in it.
    However if i import am project manually or trough unity both projects get messed up.

    To change the name of plugins did not work either.
    Do somebody have an idea?
    Thank you
     
  2. Timelog

    Timelog

    Joined:
    Nov 22, 2014
    Posts:
    528
    Just copy the files from one of the plugin folders into he other, should work. The plugin folder is what I like to call a "Unity folder" meaning Unity uses that folder to load specific assets, in this case plugins (just like the editor and resources folder). Note that they did some changes in V5 to eliminate this need (though I would still consider it a Best Practice to keep plugins in a plugins folder (or editor folder for editor plugins).

    More info can be found in the Unity Manual about plugins: http://docs.unity3d.com/Manual/Plugins.html
     
  3. eleon-games

    eleon-games

    Joined:
    Feb 19, 2015
    Posts:
    56
    Thank you for that fast answer. But when i copy the files manually either the game or the other plugin dont work right. Seperatly they work perfect. Maybe the game need a specific folder structure and when i copy the new files unity cant find it?
     
  4. Timelog

    Timelog

    Joined:
    Nov 22, 2014
    Posts:
    528
    Are there any specific error messages you get? Because in general if you copy the contents of one plugin folder to the other, as long as there are no naming conflicts, it should technically work.
     
  5. eleon-games

    eleon-games

    Joined:
    Feb 19, 2015
    Posts:
    56
    Yes i get these Errors instantly after importing

    Error importing folder (The pathName assets/plugins is already mapped to 28e016d4ef772ed4f95f379f8c64e0ba. But the meta data wants it to be mapped to 6a61c4c7e8e3d4e55bd1431be8d5483a)

    Failed to unload 'Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Number.prefab'
     
  6. eleon-games

    eleon-games

    Joined:
    Feb 19, 2015
    Posts:
    56
    is it possible to load a scene thats not in the same asset folder?
     
  7. Timelog

    Timelog

    Joined:
    Nov 22, 2014
    Posts:
    528
    Do you try to copy over the .meta files? If so, try without copying those.