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:
This script demonstrates two commonly used functions in Unity scripts:
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.