Search Unity

How to setup Unity Project to produce Package code and script it.

Discussion in 'Package Manager' started by Jean-Fabre, May 27, 2021.

  1. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi,

    I am having trouble finding information on how to setup a Project so that I can work on it and produce the scripts that I will provide as a package.

    I have successfully created a github project that I can use to install via package manager.

    and so, I am using this github project as sub module inside my dev project. But the problem is that inside the dev project, it sits in the assets, but when installed on users it's inside the package cache. And some features are therefore different, for example, if you want to load an asset using it's path, it's different, you can't use Application.DataPath.

    So, how do you go with scripting, test, debug for upm in a productive way making sure that it works without having to first publish and test on a dummy project where you remove and install again that upm package?

    Thanks,

    Jean