Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Prebabs not updates

Discussion in 'Prefabs' started by eizenhorn, Oct 25, 2018.

  1. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
    Hi! Recently faced a strange problem. The artist filled in a version of the prefab (using SourceTree), this is such a house with a pipe. We received changes, they are in the meta, (but strange, in Modifications area)

    upload_2018-10-25_15-33-31.png

    but for some reason in the editor itself, the pipe is centered in our editor, as if ignoring all these changes.

    upload_2018-10-25_16-55-11.png

    On our machines, this prefab does not contain changes or overrides, and therefore had to receive changes after receiving a commit from an artist, but this did not happen. Any ideas?

    P.S. After hour I can call with artist and look what he did wrong :) I think he did something wrong :D
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,877
    The modifications in the HouseSmall01 Prefab could be the position of a nested Prefab? Then it would show up in the modifications section of the Prefab instance of that nested Prefab.

    Okay, so just to be clear, you don't think this was an issue with the Prefabs after all?
     
  3. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
    There is no nested prefabs, just default prefab source from imported mesh
    upload_2018-10-25_17-30-26.png

    What we must to do in this case? Creates new prefab from tube and use it instead existing prefab source from imported mesh?
     
    Last edited: Oct 25, 2018
  4. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,877
    In the picture, exhaust_tube is a Model Prefab instance inside the of HouseSmall01 Prefab, so exhaust_tube is nested in HauseSmall01. This means there is also overrides for the instance of exhaust_tube inside the file of HouseSmall01. This is expected and correct.

    I don't understand what has gone wrong exactly. You should be able to use exhaust_tube fine and move it around inside HauseSmall01 as you wish. I can't tell why the changes did not work correctly. If you move it around on your own machine, does it not work either?
     
  5. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
    I know that is Model Prefab (I name it Source Prefab like in "Overrides" tab) I told about "Normal" nested prefabs :) Anyway is not mater.

    As I say in my initial post, issue is - prefab have actual position in meta

    meta. Position for exhaust_tube in HauseSmall01​

    But this position not applied if we see in prefab:


    Of course I can move this tube on my machine, but is wrong. Why I should move it if artist already moved this tube and send this changes to repository and we get it (as you can see in meta), but prefab realy not do this movements.
     
  6. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,877
    Ok, I understand better now what you mean. That sounds weird indeed.

    If you move it yourself to the correct position, just as a test, how does the source file change? I'm interested in whether that changes the same fields you highlighted in red, or some different ones.
     
  7. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
    Yep I check it before and see that it changes same fields BUT fileID changed from 400002 to 400000 if we check exhaust_tube is identifier of root transform, which correct. And in this case, I don't understand why(?) because source control not handle fileID changes. It can be incorrect merge? If it helps, on last screen meta of initial exhaust_tube.fbx, which have 400000 and 400002 identifiers.
    upload_2018-10-25_19-0-47.png
    upload_2018-10-25_19-2-59.png
    upload_2018-10-25_19-6-53.png
     
  8. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
    I called with artist :) In his version fileID 400002 :) after reimport on his side, fileID now 400000 in his editor :) I think it's incorrect merge
     
    Last edited: Oct 25, 2018
  9. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,877
    Ah, all right. Glad it got sorted out more or less in the end.

    I don't know if perhaps this tool can help in the future (in case you're not using it)? https://docs.unity3d.com/Manual/SmartMerge.html
     
  10. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
    We, of cource use UnityYAMLMerge for a long time :) Anyway thanks for advice! :)
     
    runevision likes this.