Search Unity

Feedback Linking assets from Package.

Discussion in 'Package Manager' started by CyRaid, Aug 3, 2019.

  1. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    74
    Hi, just an idea here..

    I've noticed TextMesh Pro, User Reporting, and other 'asset packages' just end up cluttering my assets folder; then it dawned on me.. Wouldn't it be cool if a [custom] package (from Package Manager) would have an Assets Folder in it's package layout? A scratch area that the package can alter/generate files?

    TMP, UserReporting, and Google Play Game Services are notorious for polluting the assets folder (especially GPGS). In my opinion, all folders they use / create should be handled in their respective package directory.
     
    Last edited: Aug 5, 2019
  2. M_R

    M_R

    Joined:
    Apr 15, 2015
    Posts:
    450
    you can already reference / drag& drop assets from package folder into object references and/or the scene. (it's a bug if you can't -- report it)
    the stuff that packages put into the Assets/ folder are, at least for TMP and Addressables, files that are project-specific and you need or want to modify and keep in version control, therefore they must be created there (you can then move them around)
     
  3. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    74
    I wrote a post before I was awake so I rewrote this lol .. Stephan_B has a comment in https://forum.unity.com/threads/tmpro-resources.609547/ that says he puts the essential resources tmp needs... It'd be nice if these packages then came optional support to include it to your assets folder so you can tweak / manage.

    So I guess what I'm asking is for, is it would be nice if each package has a 'scratch area' of their own which will be included in the build. There's far too much pollution in our assets folder that we're not in control of.

    Re-Edit: I also changed up my original post a bit to clear up what I intend. Thanks for the extra info.
     
    Last edited: Aug 5, 2019
  4. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    74
    As for version control, perhaps a new directory in the base root of the project, could be a folder that is meant for scratch area? To be included in version control? Then show up in the Editor so you can drag around as necessary.
     
  5. M_R

    M_R

    Joined:
    Apr 15, 2015
    Posts:
    450
    wait. since when GPGS is a package? I mean upm, not legacy
    .unitypackage
    here.
    and it is definitely NOT maintained by Unity.

    UserReporting (if I remember right, I only looked at the first alpha) creates a prefab that you need to customize with your game UI, therefore it should be an asset (I agree that it should not happen on package install, but be behind an "assets/create/xxx" menu item)

    for settings, I agree and I already proposed a solution here https://forum.unity.com/threads/package-perproject-assets.642292
    TLDR settings should go into ProjectSettings/, assets should be imported on demand
     
  6. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    74
    Oh I see you guys have been talking about this already haha, didn't see it. Yeah GPGS is a unity package, but would love it to be a new package (to be used in package window). If only Unity would send some guys to the GPGS, ever since I've included it in my game I've seen so many errors left and right. I've raised those issues in their github, but it seems only one guy is responding to those issues (in his free time), and it almost seems abandoned.. And this is pretty much the go to for Game Play Services to implement the ISocialPlatform for Android.