Author Topic: latest upgrade - having some Atlas issues  (Read 3224 times)

Roots

  • Guest
latest upgrade - having some Atlas issues
« on: November 09, 2013, 01:43:40 AM »
Hey,

I imported the latest version from the Appstore. Initially the upgrade went fine but now i am running into some issues with the Atlas maker. I think things have changed a lot since i last looked at this. Essentially i am not able to edit my existing Atlas and when i try to create a new one based on one of the examples i get somekind of index-out-range error.

So after recopying my old Atlas into my upgraded project i now get:
MissingReferenceException: The variable material of 'UIAtlas' doesn't exist anymore.
You probably need to reassign the material variable of the 'UIAtlas' script in the inspector.

I assume the NGUI upgrade took care of this before but since i copied old code back into my upgrade project something must have missed?!

Any help someone can offer. The easiest is for me to take an existing Atlas e.g. refractive, make a copy and add my personal sprites as well as remove stuff i don't use. but trying this is not working for me, should this be possible?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: latest upgrade - having some Atlas issues
« Reply #1 on: November 09, 2013, 07:57:45 AM »
You can't simply copy scripts without their metadata. Edit -> Project Settings -> Editor, and make sure Meta Files is turned on under Version Control.

Roots

  • Guest
Re: latest upgrade - having some Atlas issues
« Reply #2 on: November 09, 2013, 11:39:12 AM »
Not totally clear on your instructions. So if turn on Met Files for version control i should be able to copy one of your sample Atlasses and modify it for my needs?

I upgraded from 2.07c to the latest release and it seems my atlasses are broken basically. I also ran the upgrade-tools package. When I try to edit my own atlas i get an UIAtlas is missing error. When i try to edit one of your sample atlasses (made a copy of the 3 files: mat, psd and prefab) i get an index-out-of-range error.

I only have a few custom sprites that I want to add your default atlass so i should:
- turn on version control of meta files
- duplicate the refractive psd, mat and prefab
- add / remove sprites from the duplicate copy i made

This should work?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: latest upgrade - having some Atlas issues
« Reply #3 on: November 09, 2013, 07:13:19 PM »
Refractive atlas can't be modified using existing tools. It was created before the atlas maker was introduced, and it uses two textures -- one for the diffuse / alpha, and another one being the mask texture.

2.0.7 is incredibly old. Going from 2.0.7 project to 3.0.X is a painful endevour. I recommend upgrading from 2.0.7 to 2.7.0, and only then going up to 3.0.

Roots

  • Guest
Re: latest upgrade - having some Atlas issues
« Reply #4 on: November 09, 2013, 10:55:20 PM »
Thanks, is there a new process for creating a new Atlas from scratch, especially how to go about including a font sprite? is there a mini up-to-date tutorial i can look at? Too bad that I can no longer take a sample atlas and modify that for my needs, that was really quick and handy for my needs.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: latest upgrade - having some Atlas issues
« Reply #5 on: November 10, 2013, 06:51:40 AM »
The 3.0 tutorial video shows all the necessary steps.

Roots

  • Guest
Re: latest upgrade - having some Atlas issues
« Reply #6 on: November 10, 2013, 12:55:58 PM »
Sorry, the moment I posted this question I realized I didn't do a proper search on this beforehand. Just watched the tutorial and will recreate my Atlas from scratch and then update my NGUI widgets accordingly. Will take a bit of effort but i think will be good to have a nice clean UI update.

Being an early user of NGUI I have to say you have been maturing the NGUI nicely. I thought the earlier version were good but now you have really pushed to a very polished and smooth Unity aligned way of creating Ui's. Very well done! A few things on how you do things in NGUI have changed but I agree they are actually changed for the better (much better componentized and aligned with how you would normally do things in Unity).

Take care......