Unity not being aware of changes in Xaml after checking out on another computer?
Hi,
I been working on two different computers and noticed that when I push my code up to git and check it out on my other computer and I click play, my latest changes are not being reflected in Unity?
If I open up the xaml file in blend and update it, and then go back to unity, now Unity will know the file had been changed and reflect changes. Perhaps I am ignoring some file in my .gitignore file that is causing this to happen (perhaps related to unity meta files)?
Wondering if this topic might be related? viewtopic.php?f=3&t=1047
Thanks
I been working on two different computers and noticed that when I push my code up to git and check it out on my other computer and I click play, my latest changes are not being reflected in Unity?
If I open up the xaml file in blend and update it, and then go back to unity, now Unity will know the file had been changed and reflect changes. Perhaps I am ignoring some file in my .gitignore file that is causing this to happen (perhaps related to unity meta files)?
Wondering if this topic might be related? viewtopic.php?f=3&t=1047
Thanks
Re: Unity not being aware of changes in Xaml after checking out on another computer?
Is this happening with the latest stable version (2.1) ? We fixed a lot of things regarding that scenario.
Re: Unity not being aware of changes in Xaml after checking out on another computer?
I tried and tried using this repo but I am unable to reproduce the issue. Could you please provide more information?
-
- goldsaucer
- Posts: 13
- Joined:
Re: Unity not being aware of changes in Xaml after checking out on another computer?
We also still have this problem with 2.1. Usually a re-import of the relevant assets helps.
Re: Unity not being aware of changes in Xaml after checking out on another computer?
The only explanation I can find to this is that the timestamp of the files is not being updated and Unity AssetPostProcessor is not being invoked. I tried and tried with the given repository above and was not able to reproduce the issue. Please, could you verify the date of the files is being updated?
Re: Unity not being aware of changes in Xaml after checking out on another computer?
I have this problem too and work around it by pressing Ctrl+S in Unity, like so:
1. Change XAML file outside Unity, save
[at this point repository changes are only in XAML file]
2. Go to Unity, Press Ctrl+S in the scene (at that point, Noesis writes down an updates .asset file)
[at this point repository changes are in XAML file and its corresponding .asset file]
3. Check-in both the XAML and .asset file in source control
If you miss step 2, then upon opening the repository on another PC you'll have to do Noesis Reimport All to re-generate the XAML file that didn't get changed in step 2.
Hope that help! I haven't reported it until now since it's not really bugging me that much.
1. Change XAML file outside Unity, save
[at this point repository changes are only in XAML file]
2. Go to Unity, Press Ctrl+S in the scene (at that point, Noesis writes down an updates .asset file)
[at this point repository changes are in XAML file and its corresponding .asset file]
3. Check-in both the XAML and .asset file in source control
If you miss step 2, then upon opening the repository on another PC you'll have to do Noesis Reimport All to re-generate the XAML file that didn't get changed in step 2.
Hope that help! I haven't reported it until now since it's not really bugging me that much.
Re: Unity not being aware of changes in Xaml after checking out on another computer?
I see, thanks for the detailed explanation. This is something we fixed in 2.2, now everything is saved to disk whenever the XAML changes.
Who is online
Users browsing this forum: Semrush [Bot] and 0 guests