Skip to content

Commit 050050c

Browse files
authored
Merge pull request #207 from Tiagobuzzz/codex/verify-unity-compatibility
2 parents 50666b2 + 14aaabc commit 050050c

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ interlinked systems that model memory, beliefs, personality, emotions and more.
1616

1717
For help and community discussions join our [support channel](https://example.com/discord).
1818

19+
## Unity Integration
20+
21+
See [docs/unity_integration.md](docs/unity_integration.md) for instructions on building a DLL and importing it into a Unity project.
22+
1923
## Versioning
2024

2125
This project follows [Semantic Versioning](https://semver.org/). Public releases

Unity/UltraWorldAI.asmdef

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "UltraWorldAI",
3+
"references": [],
4+
"includePlatforms": [],
5+
"excludePlatforms": [],
6+
"allowUnsafeCode": false
7+
}

docs/unity_integration.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Unity Integration
2+
3+
This project targets .NET 8 and can be imported into Unity as a managed plugin. Follow these steps to create a DLL that Unity can reference:
4+
5+
1. Build the library in Release mode:
6+
```bash
7+
dotnet build -c Release src/UltraWorldAI/UltraWorldAI.csproj
8+
```
9+
2. Copy the generated `UltraWorldAI.dll` from `src/UltraWorldAI/bin/Release/net8.0/` into your Unity project's `Assets/Plugins` folder.
10+
3. In Unity, create an Assembly Definition file that references `UltraWorldAI.dll` if you plan to compile scripts separately.
11+
4. Ensure your Unity project is set to use the `Mono` scripting backend or a version of `IL2CPP` that supports .NET 8 assemblies.
12+
13+
Because the project uses modern .NET features, older versions of Unity may not load the DLL. Unity 2022.3 and newer is recommended.

0 commit comments

Comments
 (0)