The Package Manager window will now list a Spine Lightweight RP Shaders entry: In the Project panel you will now also find a Spine Lightweight RP Shaders entry under Packages: If the entry is not yet listed in the Project panel, you may need to close and re-open Unity. b) Via the Package Manager Copy the package contents anywhere outside your Assets directory, then open the Package Manager in Unity (via Window > Package Manager), select the + icon, choose Add package from disk., and point it to the package.json file.a) Copy into your project Copy the package contents to the Packages directory in your project.After unzipping or cloning, you can make use of the package in one of these two ways:.Having your Unity project open, it is recommended to close any scene containing Spine components (e.g.Download the desired UPM package via the download page or find it in the spine-unity/Modules subdirectory in the Git repository.Installation Option A - Download the UPM package By providing our Universal RP Spine shaders as a UPM package, such dependencies are automatically resolved, making it easier to use this additional functionality. Including our Universal RP Spine shaders in the spine-unity runtime would lead to confusing error messages and additional configuration steps in case Unity's Universal RP package has not been installed in a project. For example, their Universal Render Pipeline base shader files are also provided as a UPM package under the name Universal RP and not part of every new Unity project out of the box. Unity has moved many of their optional modules to the new Unity Package Manager (UPM) ecosystem. Some optional features, such as Timeline or Universal Render Pipeline support, are provided via separate Unity Package Manager (UPM) extension packages. The spine-unity runtime works without additional plugins. To enable 2D Toolkit compatibility, open Unity's Preferences via Edit - Preferences ( Unity - Preferences on Mac) and in section Spine select Define TK2D - Enable. Spine-unity supports 2D Toolkit and can render Spine skeletons using TK2D's texture atlas system. If the entry is not yet listed in the Project panel, you may need to close and re-open Unity. In the Project panel you will now find spine-unity Runtime and spine-unity Runtime Examples entries under Packages. The Package Manager window will now list the added package entry. The part #4.1 determines the branch and can also be set to a specific git commit hash like #5e8e4c21f11603ba1b72c220369d367582783744 to ensure everyone on your project has the same consistent state of the package. For each of the three packages, select the + icon, choose Add package from git URL., and enter the git URL above (or from the download page). Open the Package Manager in Unity (via Window > Package Manager). Unfortunately a bug in Unity causes the error "Opening scene in read-only package!" when trying to directly open a scene within a package downloaded via git URL: To open the example scenes of the Spine Examples package, please copy the scene files from the package directory to your Assets directory using your system's file manager ( Explorer or Finder respectively). option, you can also directly use add the three packages with these URLs: Using Unity Package Manager - 'Add package from git URL' instead of the unitypackage If your Unity version is rather recent and your Unity Package Manager provides the Add package from git URL. Copy the folder spine-runtimes/spine-csharp/src to your project's Assets/Spine/Runtime/spine-csharp folder.Īlternative Installation via Package Manager.Copy the contents of spine-runtimes/spine-unity/Assets/ to your project's Assets/ folder.Clone the spine-runtimes Git repository.Getting latest changes via Git instead of the unitypackage Import the unitypackage (you can double-click on it and Unity will open it).Alternatively you can get the latest changes via Git as described below. Download the latest spine-unity unitypackage.Create a new empty project in the Unity Editor.To use the spine-unity runtime in your Unity project: Integrating an official Spine Runtime into your applications requires a valid Spine license, though you are welcome to use the Spine Runtimes for evaluation purposes.
0 Comments
Leave a Reply. |