๐ฆInstallation for Godot
This page shows you how to install Yarn Spinner for Godot, the Godot integration for running Yarn and Yarn Spinner scripts in your Godot-based games.
Yarn Spinner for Godot is a Yarn Labs project. It is not fully, or officially supported, and may break, or change at any time.
๐ฆ Installation for Godot
Download a copy of the latest version of Yarn Spinner for Godot from the GitHub repository, or clone the repository somewhere.
Locate the addons/
directory in your new local copy of Yarn Spinner for Godot:
![](https://docs.yarnspinner.dev/~gitbook/image?url=https%3A%2F%2F1350824522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MUzduXovTOfMmBpZ0Wi%252Fuploads%252FA2OFO3Xx8IynvA0wTkOJ%252FScreenshot%25202023-10-17%2520at%25203.01.50%25E2%2580%25AFpm.png%3Falt%3Dmedia%26token%3D20dcac48-e4f6-475c-9aa2-201061aee6be&width=768&dpr=4&quality=100&sign=f25cc7a6&sv=1)
addons
directory in a local copy of Yarn Spinner for Godot.Put a copy of this directory into your new Godot project, either by dragging the folder in your file manager (e.g. Finder or Explorer) into the folder of the Godot project, or by dragging from your file manager into the FileSystem dock of your Godot project:
![](https://docs.yarnspinner.dev/~gitbook/image?url=https%3A%2F%2F1350824522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MUzduXovTOfMmBpZ0Wi%252Fuploads%252FiSth1OW3aNdJ0NCeieqO%252FScreenshot%25202023-10-17%2520at%25203.04.04%25E2%2580%25AFpm.png%3Falt%3Dmedia%26token%3D77235090-e275-4c68-b2b1-9aa52977b73f&width=768&dpr=4&quality=100&sign=8ec5088e&sv=1)
addons
directory in.Next, choose the Project menu -> Tools -> C# -> Create C# solution. This will create a C# project for you. We have to do this to trigger the creation of the .csproj
file, which is necessary to let Godot know about the Yarn Spinner plugin.
Next, open the project folder in Visual Studio Code. In the sidebar of VS Code, the .csproj
file and add the following line to it, inside the <Project>
</Project>
tags, but not inside an <ItemGroup>
or <PropertyGroup>:
Your brand new project should look something like this in VSCode:
Save the tweaked .csproj
file and return to Godot, everything is almost ready to go. Click the Build button in the very top right-hand corner of the Godot window. This will trigger a build of the C# solution for the project, which is required to make Godot aware of Yarn Spinner for Godot.
Once the build is complete, open the Project menu -> Project Settings, change to the Plugins tab, and tick the enabled box next to the Yarn Spinner for Godot plugin:
With that, you're ready to go!
Last updated