1. Start with the loop
- Stats drain: hunger and thirst go down every second.
- The player looks for items and picks them up.
- Using an item refills a stat.
- Progress is saved so the next session continues.
Get this loop playable in a grey box level first. Crafting, building and enemies all sit on top of it.
2. Hunger and thirst in C#
using UnityEngine;
public class SurvivalStats : MonoBehaviour
{
public float hunger = 100f, thirst = 100f;
public float hungerPerSecond = 0.5f, thirstPerSecond = 0.8f;
void Update()
{
hunger = Mathf.Max(0f, hunger - hungerPerSecond * Time.deltaTime);
thirst = Mathf.Max(0f, thirst - thirstPerSecond * Time.deltaTime);
if (hunger == 0f || thirst == 0f) Debug.Log("Starving");
}
public void Eat(float amount) => hunger = Mathf.Min(100f, hunger + amount);
public void Drink(float amount) => thirst = Mathf.Min(100f, thirst + amount);
}3. Pick items up
Cast a ray from the camera, and when it hits an item within reach, show a prompt and add the item on E. The inventory system guide walks through the raycast, the hotbar and dropping items with physics.
4. Save progress
Save the stats, the inventory and the player position into one class and write it as JSON. The save system guide has the full code, including safe file writes.
5. Block out the world
Survival needs a place worth exploring and items worth picking up. These packs and systems cover the first playable version:
FREE EDITION10 Game Systems for Unity: Doors, Inventory, Save, Shop & RPG
Unity 6 · URP · C# source + demo

Survival Low Poly Pack
24 models · FBX

Survival Weapons: Low Poly PSX Scavenger Pack
24 models · .blend · pixel textures
BEST SELLERNature Low Poly Pack
17 models · FBX
The zombie and survival collection lists them in the order to get them, and the asset budget planner shows what fits your budget.
Play one before you build one
Survive It, from Imersa Studios (the team behind ReadySpawn), is a free 2D open-world survival game where everything you find can be picked up and crafted into tools. It is a quick way to feel how a crafting loop paces itself. See Survive It on the studio site.
Questions
Start with a penalty (slower movement, health drain) rather than instant death. It keeps tension without frustrating new players.
No. Get gathering and using items fun first. Crafting is a layer on top of the inventory, and it's easier to tune once the loop works.
Who wrote this
Imersa Studios builds the Unity systems, low poly packs and field guides sold on itch.io. The code and techniques here come from shipping those products. More about the studio.

