Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

How can I edit a script in a package without it being overwritten when opening Unity?

Discussion in 'Package Manager' started by DreamPower, Aug 25, 2019.

  1. DreamPower

    DreamPower

    Joined:
    Apr 2, 2017
    Posts:
    103
    I have a script in a built-in package that I'd like to edit (just change a true to false). So I turn off write-protection for the script, make the change, save it, works great!

    ...until next time I open Unity, the change is undone. How can I make this change permanent, until I next go to the package manager and import a new version?
     
  2. Karashi-shiki

    Karashi-shiki

    Joined:
    Jul 9, 2019
    Posts:
    3
    @DreamPower
    1. Find the package directory from Library/PackageCache directory
    2. Copy the package directory to Packages directory
    3. Edit the package
    4. If you are using a version control system (Git, Mercurial, CVS, etc.), commit the package directory to share
     
    Sab_Rango likes this.
unityunity