Skip to content

EricBL3/unity-generative-agents-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This repository contains the code for the "Exploring Generative Agents in Unity" project. Since the project used several licensed assets, the full Unity project can't be uploaded. This README file explains how to set up the Unity project to replicate the project assuming that the same or similar assets are available.

The following assets were used in the project:

Unity project configuration

The project was made using Unity 6.

Project creation and settings

  1. Create a Universal 3D Core project Unity project creation

  2. Import all the assets. If using the Synty Polygon Town pack, make a copy of the demo scene Polygon Town demo scene

  3. Follow the instructions for creating an emoji font asset and make sure to add the corresponding scripting define symbols in the Player section of Project Settings. Project settings

World representation

  1. Create an empty game object for the world representation and add the WorldTree script. World game object

  2. For each location of the world, create a game object with a box collider (set as trigger) that encompases the whole location and the AreaTrigger script Location

  3. For each section within the location, create a game object with the box collider set as trigger and the AreaTrigger script set as section. Also add the ObjectState script to any object in the section. Section and object setup

  4. Also create a game object that will represent the teleport location for the agent at each section. Teleport location

Simulation settings

Create a simulation settings game object, attach and configure the scripts as shown in the images.

alt text

alt text

alt text

For the memory configuration, the following settings were created:

  • Sensory memory alt text
  • Short-Term memory alt text
  • Long-Term memory alt text

Agents

The agent was configured using one of the Polygon Town pack characters. Attach the scripts as shown in the images.

alt text

alt text

alt text

alt text

The knowledge profile and agent templates that were used for the project were configured as shown here:

alt text

alt text

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages