Welcome,
Guest
. Please
login
or
register
.
October 03, 2024, 05:09:21 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Sharing Atlas with git
« previous
next »
Print
Pages: [
1
]
Author
Topic: Sharing Atlas with git (Read 3403 times)
Tatanan
Jr. Member
Thank You
-Given: 11
-Receive: 0
Posts: 81
Sharing Atlas with git
«
on:
June 22, 2015, 04:37:20 AM »
We use Git for sharing files with the team.
When a developer edit an atlas (on Mac) and push it to the git, and then I pull it (to my PC), then the position of every file is changed and then the layout gets awful.
What am I doing bad?
Thank you.
Logged
Game developer on
Casual Arena
.
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: Sharing Atlas with git
«
Reply #1 on:
June 23, 2015, 10:52:47 AM »
Remember to save the prefab and push that as well. This is almost always because the texture has been updated, but the prefab, which holds all the coordinates, is not.
Save scene, save project and see that the prefab is now modified - push that with the texture.
Logged
Tatanan
Jr. Member
Thank You
-Given: 11
-Receive: 0
Posts: 81
Re: Sharing Atlas with git
«
Reply #2 on:
June 24, 2015, 02:42:50 AM »
Do you mean the .prefab file and also the .prefab.meta file?
Logged
Game developer on
Casual Arena
.
Tatanan
Jr. Member
Thank You
-Given: 11
-Receive: 0
Posts: 81
Re: Sharing Atlas with git
«
Reply #3 on:
June 24, 2015, 02:47:34 AM »
The .prefab.meta is never changed, ie, if I update the atlas, the .meta of the prefab is not modified.
It's modified the .png, the .png.meta and the .prefab files, just those 3.
And all those 3 are pushed with git.
Logged
Game developer on
Casual Arena
.
Tatanan
Jr. Member
Thank You
-Given: 11
-Receive: 0
Posts: 81
Re: Sharing Atlas with git
«
Reply #4 on:
June 24, 2015, 03:03:07 AM »
A new update:
I've making some tests. The .prefab file seems not to be the problem, but the .png itself.
When moving from Mac to Pc with git the file is crashed.
I send you the file.
Logged
Game developer on
Casual Arena
.
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Sharing Atlas with git
«
Reply #5 on:
June 25, 2015, 08:48:24 PM »
Looks to me like your atlas is too big. The pic you attached is 2k by 2k, and by the looks of it it needs to be 4k by 4k. Unity will forcefully import a texture at a lower size if your quality settings are set to not support larger texture sizes. Same thing will happen if your target platform doesn't support 4k textures (such as mobile). Changing the atlas at that point will result in it getting corrupted.
Logged
Tatanan
Jr. Member
Thank You
-Given: 11
-Receive: 0
Posts: 81
Re: Sharing Atlas with git
«
Reply #6 on:
June 26, 2015, 02:10:02 AM »
On Quality Setting me have the very same setting on both Mac and PC, in both we have Full Res for Texture Quality for any device.
About mobile, we are using 4kx4k textures and they work. Is it incorrect?
Logged
Game developer on
Casual Arena
.
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Sharing Atlas with git
«
Reply #7 on:
June 29, 2015, 06:54:18 AM »
Not necessarily. Not all mobile devices support 4k textures. In fact, most don't.
Unity also has a habit of overriding the 4k texture setting, silently replacing it with smaller size without your knowledge. You explicitly need to override the platform import settings for the texture to force it to be 4k -- but as I said, most mobile devices won't support it.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Sharing Atlas with git