Skip to content

Conversation

@T-Podgorski
Copy link

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.

Fixed client module bindings autogen location in a CLI call. 
The old command generates the bindings outside of the Unity project's actual Assets folder and they can't be seen by the GameManager script. It's also inconsistent with the project structure presented at the beginning of part 2.
The new command is consistent with part 3 of the tutorial, where the bindings are being regenerated.

Signed-off-by: T-Podgorski <[email protected]>
Edited other context that mentions the fixed generate command.

Signed-off-by: T-Podgorski <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Nov 15, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@JasonAtClockwork JasonAtClockwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very useful update to our tutorial thank you! Just one small fix to make the change consistent between the two sections and then it's looks solid to me.

```

This will also generate a file in the `client-unity/Assets/autogen/SpacetimeDBClient.g.cs` directory with a type aware `DbConnection` class. We will use this class to connect to your database from Unity.
This will also generate a file in the `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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with the above line this should probably be:
... generate a file in the blackholio/Assets/module_bindings/SpacetimeDBClient.g.cs directory ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants