30 Prompts for GameDev: Unity, Unreal Engine, and Godot

30 Prompts for GameDev: Unity, Unreal Engine, and Godot

Introduction

Game development is a craft that blends art, logic, and engineering. Whether you're building a hyper-casual mobile game or a AAA open-world adventure, you spend a significant chunk of your day writing code, debugging, and optimizing. But here's the secret weapon that many developers overlook: AI prompts. A well-crafted prompt can generate boilerplate scripts, debug complex shaders, or even design entire mechanics in seconds.

In this article, I share 30 battle-tested prompts for Unity (C#), Unreal Engine (Blueprints), and Godot (GDScript). These aren't theoretical — I use them daily in my own projects. Each prompt comes with a real usage example. No fluff, no theory, just practical value.

Why Use Prompts in Game Development?

AI assistants like ChatGPT, Claude, and GitHub Copilot have evolved rapidly. By mid-2026, they can generate entire game systems from a single, well-structured prompt. However, the key is specificity. A vague prompt like "write a movement script" yields generic code. A precise prompt like "write a C# script for Unity that implements WASD movement with sprint and jump, using CharacterController, with adjustable speed values" gives you production-ready code.

Prompts save time on:
- Boilerplate code generation
- Debugging error messages
- Optimizing performance bottlenecks
- Creating procedural content
- Designing UI layouts

Prompts for Unity (C#)

1. Character Movement Controller

Prompt: "Write a C# script for Unity that implements first-person movement using CharacterController. Include WASD movement, sprint (hold Shift), jump (Space), and mouse look. Expose movementSpeed, sprintMultiplier, jumpHeight, and gravity as public variables. Add ground check with a LayerMask."

Usage example: Paste this into a new script, attach to your player GameObject, and adjust values in the Inspector. It replaces 30 minutes of manual coding.

2. Object Pooling System

Prompt: "Create a generic object pooling system in Unity C#. The pool should pre-instantiate a set number of objects, return inactive ones on request, and automatically expand if needed. Include methods: GetObject(), ReturnObject(), and a public poolSize variable. Use a Queue internally."

Usage example: Use this for bullet pools in shooters or particle effects. Reduces garbage collection spikes significantly.

3. Health System with Events

Prompt: "Write a C# health system for Unity with maxHealth, currentHealth, damage, and heal methods. Fire events: OnHealthChanged(float currentHealth), OnDamageTaken(float damage), OnHealed(float amount), and OnDeath(). Make it scriptable as a MonoBehaviour."

Usage example: Attach to any damageable entity (player, enemy, destructible object). UI and animations subscribe to events.

4. Save/Load System Using JSON

Prompt: "Implement a save/load system in Unity C# that serializes a list of player data objects to JSON using JsonUtility. Include SaveGame(string slotName), LoadGame(string slotName), and DeleteSave(string slotName). Store in Application.persistentDataPath."

Usage example: Create a SaveManager singleton. Call SaveGame("slot1") on checkpoint. Works for inventory, position, and stats.

5. Finite State Machine (FSM)

Prompt: "Write a generic FSM for Unity C#. Define an IState interface with Enter(), Update(), Exit() methods. Create a StateMachine class that manages state transitions. Include a simple example: IdleState and PatrolState for an enemy AI."

Usage example: Implement enemy AI behavior without spaghetti code. Easy to add new states.

6. Camera Shake Effect

Prompt: "Create a camera shake effect in Unity C# using coroutines. Accept parameters: duration, magnitude, and fadeOut (bool). Use Random.insideUnitSphere on local position. Attach to main camera."

Usage example: Trigger on explosion or heavy hit. Adds juicy feedback.

7. Inventory System

Prompt: "Design a C# inventory system for Unity with a list of Item objects. Item has id, name, icon, maxStack. Include AddItem(Item item, int amount), RemoveItem(string itemId, int amount), and GetItemCount(string itemId). Use a dictionary for fast lookup."

Usage example: Store items in a ScriptableObject database. UI reads from inventory.

8. Raycast Interaction

Prompt: "Write a Unity C# script that casts a ray from the center of the screen forward. If it hits a GameObject with IInteractable interface, call Interact(). Show a UI prompt when looking at interactable objects."

Usage example: Use for picking up items, opening doors, or talking to NPCs.

9. Timer with Callback

Prompt: "Create a Unity C# Timer class that counts down from a duration. Include events: OnTimerStart, OnTimerTick(float remainingTime), OnTimerComplete. Support pause, resume, and reset. Use Unity's Time.deltaTime."

Usage example: Use for countdowns, cooldowns, or timed events.

10. Shader Graph for Glow Effect

Prompt: "Generate a Unity Shader Graph that creates a pulsating glow effect on a sprite. Use vertex color as base, add a sine wave to emission intensity, and expose pulseSpeed and glowColor."

Usage example: Apply to collectibles or power-ups to make them stand out.

Prompts for Unreal Engine (Blueprints)

11. Third-Person Character Setup

Prompt: "Create an Unreal Engine Blueprint for a third-person character with movement, jump, and camera follow. Use SpringArmComponent for camera, CharacterMovementComponent for movement. Expose walk speed, run speed, and jump height."

Usage example: Start a new project, create a BP_ThirdPersonCharacter from this prompt. Saves hours of node connecting.

12. Health Component

Prompt: "Design an ActorComponent Blueprint for health. Include float CurrentHealth, MaxHealth. Add functions: TakeDamage(float DamageAmount), Heal(float HealAmount). Fire events OnHealthChanged and OnDeath. Make it reusable."

Usage example: Attach to any damageable actor. Call TakeDamage from weapon hit events.

13. Pickup System

Prompt: "Build a Blueprint for a pickup item. On overlap with player, destroy self and add to player's inventory. Use an interface IPickup with Pickup(AActor* PickupInstigator). Include a floating rotation effect."

Usage example: Create health pickups, ammo, coins. Drag and drop into level.

14. Simple AI Patrol

Prompt: "Create a Blueprint for an AI character that patrols between two waypoints. Use AI Controller with Behavior Tree. Patrol task moves to random waypoint, waits 2 seconds, then moves to next. Add simple sight detection."

Usage example: Use for guard NPCs in stealth games.

15. Door with Open/Close Animation

Prompt: "Design a Blueprint for a door that opens when player presses E near it. Use Timeline for smooth rotation. Include Open and Close functions. Expose OpenAngle and InterpSpeed."

Usage example: Place in level, bind to interact key.

16. Damage Number UI

Prompt: "Create a Widget Blueprint that shows floating damage numbers. Spawn at hit location, animate upward with fade out. Use text block with random color variation. Destroy after 1 second."

Usage example: Attach to projectiles. Adds visual feedback.

17. Spline-Based Path

Prompt: "Build an Actor Blueprint that uses SplineComponent to define a path. Add a function GetLocationAtDistance(float Distance) that returns a point on the spline. Use for moving platforms or camera rails."

Usage example: Create a moving platform that follows spline points.

18. Inventory Component

Prompt: "Design an ActorComponent Blueprint for inventory. Use a map of ItemID (int) to Count (int). Functions: AddItem(int ItemID, int Amount), RemoveItem(int ItemID, int Amount), HasItem(int ItemID). Fire OnInventoryChanged event."

Usage example: Attach to player character. UI reads from this.

19. Simple Dialogue System

Prompt: "Create a Blueprint for a dialogue system. Data table with lines (SpeakerName, DialogueText). On interaction, show widget with typewriter effect. Next line on click. End dialogue on last line."

Usage example: Use for NPC conversations.

20. Particle Effect on Impact

Prompt: "Design a Blueprint that spawns a particle system at hit location when a projectile hits a surface. Use Niagara system for sparks. Expose particle template and scale."

Usage example: Attach to bullet projectile. Impact feels physical.

Prompts for Godot (GDScript)

21. Player Movement (2D)

Prompt: "Write a GDScript for Godot 4 that implements 2D player movement using CharacterBody2D. Include left/right movement, jump with variable height, double jump (optional), and animated sprite. Use Input.get_axis for movement."

Usage example: Attach to player scene. Works with default input map.

22. Health System

Prompt: "Create a GDScript health system as a Node. Export var maxHealth = 100. Functions: takeDamage(amount), heal(amount). Signal healthChanged(newHealth), died. Connect to UI."

Usage example: Add as child to any damageable object.

23. Bullet Pooling

Prompt: "Write a GDScript for a bullet pool in Godot 4. Preload bullets, store inactive in array. Function getBullet() returns inactive instance, returnBullet(bullet) resets and hides. Use for performance."

Usage example: Use in shooters. Reduces instantiation overhead.

24. UI Health Bar

Prompt: "Create a GDScript for a TextureProgressBar that updates based on a health signal. Set min = 0, max = 100. On healthChanged(newHealth), update value. Add tween for smooth animation."

Usage example: Connect to health node. Shows player health.

25. Simple State Machine

Prompt: "Write a GDScript state machine for Godot 4. Define State class with enter(), update(delta), exit(). StateMachine Node manages current state. Example: idle, walk, jump states."

Usage example: Use for player or enemy behavior.

26. Inventory with Grid

Prompt: "Design a GDScript inventory system using a 2D array. Each slot can hold an item (resource). Functions: addItem(item, position), removeItem(position), swapItems(pos1, pos2). Emit signals on change."

Usage example: Use for grid-based inventory UI.

27. Camera Follow

Prompt: "Write a GDScript for Camera2D that follows a target (player) smoothly. Use lerp. Exports: target (NodePath), smoothingSpeed. Clamp to level limits using limit variables."

Usage example: Attach to camera node. Set target to player.

28. Dialogue Box

Prompt: "Create a GDScript for a dialogue system. Accept array of strings. Show in Label with typewriter effect (add letter by letter). On click, next line. On end, hide. Use signals for start/end."

Usage example: Show NPC dialogue.

29. Auto-Tile Map

Prompt: "Write a GDScript that generates a TileMap from a 2D array of tile indices. Use set_cell for each coordinate. Expose tile_size and layer. Useful for procedural generation."

Usage example: Generate dungeon levels from array.

30. Simple Quest System

Prompt: "Design a GDScript quest system with Quest resource: id, name, description, objectives (array of Objective resources). Functions: activate(), completeObjective(objectiveId), isComplete(). Emit onQuestCompleted."

Usage example: Store quests in array. Check progress.

Conclusion

These 30 prompts cover the most common tasks in game development across Unity, Unreal Engine, and Godot. The key to getting good results is specificity — include engine version, component names, and expected behavior. Always test generated code in a sandbox project before integrating.

For even more productivity, consider using dedicated AI tools like GitHub Copilot in your IDE. And if you want to master connecting your game to external services (like analytics, leaderboards, or payment systems), ASI Biont supports integration with Unity and Unreal Engine through API — learn more at asibiont.com/courses. Happy coding!

← All posts

Comments