Introducing Dragonfly Cloud! Learn More

Question: What game engine does Phasmophobia use?


Phasmophobia is developed using the Unity game engine. Unity is widely used because of its versatility and ease of use for developers. It supports both 2D and 3D development and offers a variety of features that allow developers to create diverse interactive experiences.

Unity uses C# as its primary scripting language, which is an object-oriented programming language developed by Microsoft. Here is a basic example of how a script in Unity might look:

using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExampleScript : MonoBehaviour { // This function is called when the script is loaded or a value is changed in the Inspector void Start() { Debug.Log("Hello, World!"); } // This function is called every frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { Debug.Log("Space key was pressed."); } } }

This script demonstrates two commonly used functions in Unity scripts: Start() and Update(). The Start() function is called once at the beginning of the script, while Update() is called once per frame.

The script checks if the 'Space' key was pressed during any frame, and if it was, it logs a message to the console.

Was this content helpful?

White Paper

Free System Design on AWS E-Book

Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.

Free System Design on AWS E-Book

Start building today 

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.