Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question As a plugin dev, how do I add pkg req's?

Discussion in 'General Discussion' started by MrLucid72, Aug 1, 2022.

  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    962
    Let's say I require Newtonsoft dll - how would I make the end-user require this package if used without asking them to manually add it?

    OR, even better, how would I seal it into my package so it doesn't conflict with *their* Newtonsoft?
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    https://docs.unity3d.com/Manual/upm-dependencies.html
     
    MrLucid72 likes this.
  3. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,850
    Do not add NewtonSoft. That crap breaks stuff. I ended up using an asset that has no dll's and is just scripts. Works way better than NewtonSoft and will not get in your way with other packages.
     
  4. Graphics_Dev

    Graphics_Dev

    Joined:
    Jun 20, 2016
    Posts:
    188
    What asset?
     
  5. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,850
    It is a scripts only based one with nice features for navigating JSON object hierarchies. Just search JSON on the Asset Store and look for the free one with no dll's. Kudos to the writer BTW for properly writing a plugin or extension purpose built for a Unity workflow and editor environment..