Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Where is the script upgrade tool?

Discussion in 'Unity 5 Pre-order Beta' started by masterton, Oct 28, 2014.

  1. masterton

    masterton

    Joined:
    Dec 11, 2012
    Posts:
    41
    I read on the blog posts that Unity will upgrade assemblies to replace .rigidbody with a call to GetComponent<RigidBody>.

    Thats great, but what about a tool to upgrade existing c# scripts? According to the blog posts such a tool exists but I can't find it anywhere. Are you using this tool or doing a find/replace on your C# scripts?
     
  2. Genjin

    Genjin

    Joined:
    Oct 17, 2014
    Posts:
    11
    It's been a while I used it but I think it appears in the Console as a Log Entry (with Warning Symbol), probably the very first or the last entry in the list. You need to double-click that entry, I believe the text mentions that too.
     
  3. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,043
    It's in Tools/ScriptUpdater/ in my installation.
     
    masterton likes this.
  4. RalphH

    RalphH

    Administrator

    Joined:
    Dec 22, 2011
    Posts:
    592
    It runs when you import an old project automatically, and asks you for permission to update through a modal dialog. Don't run it manually unless you know exactly what you are doing.
     
  5. masterton

    masterton

    Joined:
    Dec 11, 2012
    Posts:
    41
    @RalphH, it did not run automatically. The project upgrade to Unity 5 threw some compile warnings in a plugin. I realize now that its waiting for me to fix those errors before running the tool. Thanks!