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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    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

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:
    887
    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:
    12,165
    https://docs.unity3d.com/Manual/upm-dependencies.html
     
    MrLucid72 likes this.
  3. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,609
    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,609
    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..