Documentation

Unity Spark

Open Unity Spark

Unity Spark

Set up a 2D game

Start a 2D game with the assistant, or set the game camera and Scene view to 2D yourself.
Read time 2 minutesLast updated 3 hours ago

Set up a 2D game so that the AI assistant creates your game in 2D and your scene shows a flat, head-on view. You can let the assistant set up the game, record the choice yourself in the Game Design window, or configure the game camera and the Scene view yourself.
For background on how 2D mode works, refer to Introduction to 2D games in Unity Spark.

Start a 2D game with the assistant

Mention
2D
in your first message, for example,
Make a 2D platformer where a fox collects gems.
The assistant records the choice and creates the game in 2D from the start. For what happens when you don't specify, refer to 2D or 3D choice for a new game.

Record the 2D choice in the Game Design window

Record the choice yourself if you didn't mention 2D in your first message. Every conversation reads the game design, so the assistant creates new content in 2D, and you don't need to mention 2D in each prompt. If your scene already has 3D objects, the assistant keeps using 3D in that scene. You can also ask the assistant to change the choice for you.
To record the choice yourself:
  1. Open the Game Design window.
  2. Select Edit game design (pencil icon).
  3. Under 2D or 3D, select 2D.
  4. Select Save.

Set up a scene for 2D yourself

Set the game camera and the Scene view to 2D. They're independent settings. For what each one controls, refer to The game camera and the Scene view.

Set the game camera to 2D

To set the game camera to 2D:
  1. Select the camera.
  2. In the Inspector window, set Render Mode to 2D.
The Projection automatically changes to Orthographic, and the Size option appears so you can set how much of the world fits on screen.

Set the Scene view to 2D

To change the Scene view to 2D, select 2D in the Scene view's toolbar. The view faces the scene head-on and can't rotate. Scroll to zoom. To pan, drag with the middle mouse button, or hold Ctrl+Alt (macOS: Cmd+Option) and drag. Objects move only up, down, left, and right.
To return to the 3D view, select 3D. Unity Spark remembers the view for each scene on this device.

Additional resources