Unity Learn home
View Tutorial Content

Set up a 2D player character

Tutorial
Beginner
+10 XP
25 Mins
(5072)
Summary
In this tutorial you’ll create a GameObject for the player character and move it using your own customs script.
By the end of this tutorial, you’ll be able to do the following:
  • Create a GameObject using a sprite.
  • Describe how 2D positions are controlled in Unity.
  • Write a custom C# script to set a GameObject’s position using information stored in a variable.
Select your Unity version
Last updated: May 05, 2025
2022.3
Language
English
Set up a 2D player character