# Example Unity router, for a made-up game ("Frostline", Unity 6, IL2CPP) in the shape of a real # one: a world and its wildlife. Its router.lua (see unity.md) would get from the boot screen into # a world through the game's own menu functions. [router] id = "frostline" name = "Frostline" version = "0.1.0" license = "CC-BY-4.0" game_exe = "Frostline.exe" units = { length = "m", up_axis = "y", handedness = "left" } [router.launch] steam_app = 4000002 [[block]] id = "frostline.world" name = "Frostline's Valley" kind = "world" description = "The frozen valley, drawn by the game from Fusion's camera with correct depth. Its ground goes into Fusion's Collision Hub, so props land on it." gives = ["layer:color+depth", "collision"] cost = { ram_gb = 2.5, gpu = "medium", must_stay_awake = true } [block.bind] map = "Valley" # the scene the kit opens once the game has booted camera = "OutputCamera" # draws the final picture; the kit finds the camera that draws the world [[block]] id = "frostline.wildlife" name = "Frostline's Wildlife" kind = "npc_group" description = "The valley's animals near Fusion's camera (with their health), in Fusion's entity registry." gives = ["entities"] actions = ["remove", "set_health", "move_to", "stop"] cost = { ram_gb = 0.0, gpu = "none" } [[block.bind.entity]] class = "AnimalBrain" kind = "animal" name = "Animal" health = "m_Health" max_health = "m_MaxHealth" spawn = "Animal_Elk"