Author Topic: Upgrading to 3x....Did I miss the first step?  (Read 3683 times)

Rafe

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Upgrading to 3x....Did I miss the first step?
« on: November 11, 2013, 12:03:00 AM »
Hi,

In the directions it says:
Quote
First of all, before importing either of the packages, always follow the first
two steps of the upgrade process:

1. Start a new scene.
2. Delete the Examples, Resources, and Scripts folders within the NGUI folder.

As soon as I delete the old folders all components get disconnected. For example, UIRoot is not longer found.

The steps I took:
1) Did the two steps above
2) Imported the 3.0.4 and the Upgrade Tools
3) Fixed a couple of minor errors (quite early in our project).
4) Opened my main menu scene.

...all components are "missing" and running upgrade tools updates 0 items.

Any idea what I am doing wrong? As soon as I read the instructions I expected this outcome, but in the video everything was still working at the start so I gave it a shot.

Cheers,

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
Re: Upgrading to 3x....Did I miss the first step?
« Reply #1 on: November 11, 2013, 03:57:22 AM »
Like the instructions are saying: 1. Start a new scene.

If you not having the scene with NGUI loaded while deleting and replacing the folder the references will not get lost.

If you do not open an new scene first you get what you got so far ... a lot of missing refferences.

Rafe

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Re: Upgrading to 3x....Did I miss the first step?
« Reply #2 on: November 11, 2013, 02:03:36 PM »
Like I said. I followed the first two steps.

My experience has been deleting anything from the project while unity is open destroys references to the deleted stuff. I was hoping the idea of using a new scene would get around this but no luck.

Maybe I'll try loading the package to a new project and doing the update command-line (outside Unity)?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Upgrading to 3x....Did I miss the first step?
« Reply #3 on: November 11, 2013, 03:56:35 PM »
If you've ever copied the NGUI folder from folder A to folder B without the associated metadata files, then you have effectively broken all the references. If you use this broken version of NGUI to create a UI system, you can never simply upgrade your NGUI again. You basically have to follow the same steps you took before and copying the NGUI from folder A to folder B instead of the regular update process.

Rafe

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Re: Upgrading to 3x....Did I miss the first step?
« Reply #4 on: November 11, 2013, 07:02:21 PM »
Hmm, this is a fairly recent project and I don't recall relocating any files. I know I had updated nGUI in the past without an issue.

I'm curious... why do I need to delete these files? Did things move or did files just get deprecated? Can I upgrade to 3x and then manually remove some leftovers or something?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Upgrading to 3x....Did I miss the first step?
« Reply #5 on: November 12, 2013, 03:09:34 PM »
You can, yes.

Deleting the NGUI folder ensures that you're getting all the correct files, and removed files won't be present after an upgrade.

Rafe

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Re: Upgrading to 3x....Did I miss the first step?
« Reply #6 on: November 12, 2013, 04:06:40 PM »
OK. Thanks for the reply. If nothing moved than I can always install to a clean project and do a directory diff.