Author Topic: Atlas sprites positions problem when sharing atlases  (Read 3254 times)

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Atlas sprites positions problem when sharing atlases
« on: May 06, 2015, 01:38:39 PM »
We are 2 on our team and share files throught Git.
I have edited an atlases and share it to my partner and positions are not maintained.
The atlas is correct (the images) but when selecting an sprite it shows a different sprite.

Which can be the problem?

I am using Windows and him Mac, but I guess this is not related.

If you need a screenshot or more information, please tell me.
Game developer on Casual Arena.

BeShifty

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 7
  • Posts: 52
    • View Profile
Re: Atlas sprites positions problem when sharing atlases
« Reply #1 on: May 06, 2015, 01:41:38 PM »
Make sure to run File/Save Project after rebaking your atlas before sending it, and send both the texture and prefab (and material if you changed PMA setting).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas sprites positions problem when sharing atlases
« Reply #2 on: May 07, 2015, 09:19:30 PM »
You also need to make sure that you have visible meta-files, or git versioning wont work with Unity.

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: Atlas sprites positions problem when sharing atlases
« Reply #3 on: May 08, 2015, 06:17:44 AM »
BeShifty, you're right, but I already did that.

ArenMook, I didn't know that, so you have basically saved my life.
Game developer on Casual Arena.

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: Atlas sprites positions problem when sharing atlases
« Reply #4 on: May 08, 2015, 06:25:13 AM »
ArenMook, I know how to make a single file to be shown (visible).
Is there any way to tell windows to automatically make visible every .meta file in windows 8?
I promise I have searched it on Google but I can't find it.
Game developer on Casual Arena.

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: Atlas sprites positions problem when sharing atlases
« Reply #5 on: May 08, 2015, 06:29:02 AM »
Oh, by the way, I know how to make every hidden file visible and one single hidden file visible.
The doubt is about making ALL the .meta files but ONLY the .meta files visible.
Game developer on Casual Arena.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas sprites positions problem when sharing atlases
« Reply #6 on: May 09, 2015, 04:17:49 AM »
All my meta files are always visible. I don't think Unity hides them... I think you are misunderstanding me.

Edit -> Project Settings -> Editor, under Version Control choose "Visible Meta Files".

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: Atlas sprites positions problem when sharing atlases
« Reply #7 on: May 12, 2015, 03:29:15 AM »
Well, Unity was indeed hiding the meta files.
I did understand you.
Your "Edit -> Project Settings -> Editor, under Version Control choose "Visible Meta Files"" was perfect. I didn't know that option. I was trying the show the files throught Windows options or one by one, but know it's perfect.

Thank you.
Game developer on Casual Arena.