Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Easily embed packages to your project with this extension

Discussion in 'Package Manager' started by liortal, Oct 25, 2019.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,321
    For all of you who want to modify packages with your custom code or fixes >now it's easier with this extension.

    Also available to import as a UPM package. Use this link: https://github.com/liortal53/upm-embed#0.1.0
    • Right-click any package folder under Packages
    • Select "Embed Package".
    • DONE - the package is now included in your project (under "Packages") and is fully editable.
    Share with friends / teammates if this is helpful :)

    upload_2019-10-25_11-27-41.png
     
    Last edited: Nov 9, 2019
    starikcetin, SugoiDev and Favo-Yang like this.
  2. starikcetin

    starikcetin

    Joined:
    Dec 7, 2017
    Posts:
    259
    Let's convert this into a UPM package and add it to Awesome UPM.
     
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,321
    What do i need to do ?

    Also, is a UPM package the best (easiest?) way to consume this? Or maybe the standard .unitypackage is better in this case ?
     
  4. starikcetin

    starikcetin

    Joined:
    Dec 7, 2017
    Posts:
    259
    Take a look here: https://github.com/starikcetin/awesome-upm#how-to-support-upm-in-my-git-repository

    Let me know if you need help.

    I would take UPM over .unitypackage every day. It is much more convenient, and you don't have to deal with deleting old left-over stuff when you want to update the package.

    And the best of them all, Assets folder remains clean of any third-party files (well, most of them anyways).
     
  5. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,321
  6. starikcetin

    starikcetin

    Joined:
    Dec 7, 2017
    Posts:
    259
    They need to add this line to their manifest.json:

    "upm-embed": "https://github.com/liortal53/upm-embed.git#0.1.0"


    Or they can use this tool, which is much easier:
    https://github.com/mob-sakai/UpmGitExtension
     
  7. OndrejP

    OndrejP

    Joined:
    Jul 19, 2017
    Posts:
    49
    Great tool! Thank you.
    There's an error, which could be fixed by adding meta file probably:

    Asset Packages/upm-embed/package.json has no meta file, but it's in an immutable folder. The asset will be ignored.
     
  8. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,321
    I will look into that, thanks.
     
  9. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,321
    fixed
     
  10. OndrejP

    OndrejP

    Joined:
    Jul 19, 2017
    Posts:
    49
    Looking good, thanks!
     
    liortal likes this.
  11. starikcetin

    starikcetin

    Joined:
    Dec 7, 2017
    Posts:
    259
    liortal likes this.
  12. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,321
    Thank you :) hopefully this helps someone(s) in our awesome community !
     
    starikcetin likes this.