Engine Integration
Oxyde integrates natively with major game engines — making it easy to embed LLM-driven agents into real-time 3D environments.
🧰 Integration Summary
Unity
C#
bindings/unity/
Built with async support
Unreal Engine
C++
bindings/unreal/
C++ classes + Blueprint-ready
WebAssembly
Rust
src/wasm.rs
Run NPCs in the browser
Native Rust
Rust
CLI or game loop
No engine required
🕹️ Unity Integration
Steps to integrate:
Import the
OxydeUnity.csbinding script.Attach the
OxydeAgentcomponent to any game object.Use
OxydeAgent.SendInput(string)to send messages to the agent.Subscribe to
.OnResponseto handle LLM replies in dialogue UI.
Example:
OxydeAgent agent = GetComponent<OxydeAgent>();
agent.SendInput("Hello there!");Emotion and memory are updated automatically.
You can override agent config at runtime via C#.
🧠 Unreal Engine Integration
Setup:
Include
OxydeUnreal.handOxydeUnreal.cppin your project.Use
UOxydeAgentComponenton anyAActor.Call
SendInput(FString Message)to prompt the agent.Bind to
OnResponseReceivedfor callbacks.
Blueprint Ready: The plugin exposes input/output bindings via UFUNCTIONs and delegates.
🌐 WebAssembly Integration
For browser-based NPCs:
Compile with
wasm32-unknown-unknowntargetInterface with
oxyde::Agent::new(...)in JS/WASMUse a web runtime to asynchronously query models or pre-baked prompts
Great for visual novels, chatbots, or WebGL RPGs.
🖥️ Native Rust
Use agent.rs, main.rs, and cli.rs to drive standalone agents in:
Command line interfaces
Dedicated servers
Networked multiplayer backends
Scripting-heavy worlds like Godot (via FFI)
🧩 Engine Choice Guide
3D open-world RPG
Unreal
Dialogue-driven simulation
Unity
Browser-based experiences
WebAssembly
Server-side brain w/ networked world
Native Rust
🔗 Related Pages
7. Advanced Topics → CLI, Voice, DB
Examples →
rpg_demo
