Search Unity

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.