Table of Contents

Consume packages

Beginner Programmer

Open your project in Visual Studio

Note

Game Studio will later support adding NuGet packages directly.

First of all, after saving all your changes, open your project with Visual Studio. You can easily do this by clicking the appropriate button on the toolbar:

Open project in Visual Studio

Add a reference

  1. In the Solution Explorer, right-click on the project and click on Manage NuGet Packages...

    Visual Studio Start button

  2. For our example, let's use Stride.AssetPack.BuildingBlocks package:

    • Choose "nuget.org" or "All" as the Package source
    • Make sure Include prerelease is checked (if necessary)
    • Go to the Browse tab
    • Search for a Stride asset package (i.e. Stride.AssetPack.BuildingBlocks) and select Install

    Install package

  3. Save the Visual Studio project.

Use assets in Game Studio

  1. In Game Studio, go to the File menu and select Reload project

  2. You should now be able to see the referenced project and its assets in Solution explorer

    Use package

Note

Those assets are readonly and as such can't be dragged and dropped into the scene. This will be fixed soon. In the meantime, you can still use the asset selector to change an existing model or material reference to one from the asset pack.