Skip to content

Commit b8cf10c

Browse files
T-Podgorskicloutiertylerclockwork-labs-bot
authored
Unity tutorial part 2 CLI call fix (#3665)
# Description of Changes Fixed a CLI call in docs Unity tutorial that generated client module code in an incorrect directory. # API and ABI breaking changes None. # Expected complexity level and risk 1 # Testing Built a project by following the tutorial with the wrong call vs the fixed call. Compared against different parts of the tutorial to confirm the intent. --------- Signed-off-by: T-Podgorski <147391857+T-Podgorski@users.noreply.github.com> Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com> Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com> Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>
1 parent b5cadff commit b8cf10c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • docs/versioned_docs/version-1.12.0/00100-intro/00300-tutorials/00300-unity-tutorial

docs/versioned_docs/version-1.12.0/00100-intro/00300-tutorials/00300-unity-tutorial/00300-part-2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,10 @@ The `spacetime` CLI has built in functionality to let us generate C# types that
501501
</Tabs>
502502

503503
```sh
504-
spacetime generate --lang csharp --out-dir ../Assets/autogen
504+
spacetime generate --lang csharp --out-dir ../Assets/module_bindings # you can call this anything, I have chosen `module_bindings`
505505
```
506506

507-
This will generate a set of files in the `Assets/autogen` directory which contain the code generated types and reducer functions that are defined in your module, but usable on the client.
507+
This will generate a set of files in the `blackholio/Assets/module_bindings` directory which contain the code generated types and reducer functions that are defined in your module, but usable on the client.
508508

509509
```
510510
├── Reducers
@@ -525,7 +525,7 @@ This will generate a set of files in the `Assets/autogen` directory which contai
525525
└── SpacetimeDBClient.g.cs
526526
```
527527

528-
This will also generate a file in the `Assets/autogen/SpacetimeDBClient.g.cs` directory with a type aware `DbConnection` class. We will use this class to connect to your database from Unity.
528+
This will also generate a file in the `blackholio/Assets/module_bindings/SpacetimeDBClient.g.cs` directory with a type aware `DbConnection` class. We will use this class to connect to your database from Unity.
529529

530530
> IMPORTANT! At this point there will be an error in your Unity project. Due to a [known issue](https://docs.unity3d.com/6000.0/Documentation/Manual/csharp-compiler.html) with Unity and C# 9 you need to insert the following code into your Unity project.
531531
>

0 commit comments

Comments
 (0)