Unity - Basic 2D sprite contorls

Matthew·2024년 8월 15일
1

Unity

목록 보기
2/9

Unity starting screen


Before starting, I customized my unity starting screen, so I can see the game view and scene window at the same time. For the Bottom half I put my hierarchy, project, and tile pallet window for easy access. I found out this layout works the best for me, so try moving around the windows and see what layout works the best for you.

How to create 2D gameObjects

  • To create 2D sprites, right-click on the heirarchy window.
  • Go to 2D Object -> Sprites.
    I generally use Triangle or squre sprites before applying the actual animated sprites.

How to Control GameObjects

Move around the scene

  • Short cut for this action is "q" on the keyboard.
  • It's pretty straight forward. You can move around the scene.

Move the 2D GameObject

  • Short cut for this action is "w" on the keyboard.
  • Pressing on the blue rectangle in the middle, you can move around the 2D gameObject freely.
  • Pressing on the green arrow, which is y-axis, you can only move the 2D gameObject in the y-axis.
  • Pressing on the red arrow, which is x-axis, you can only move the 2D gameObject in the x-axis.

Rotate the 2D GameObject

  • Short cut for this action is "e" on the keyboard.
  • You can rotate the sprite by pressing on the blue line.
  • I suggest to play around with it and see how it works.

Stretch the 2D GameObject

  • Short cut for this action is "r" on the keyboard.
  • You can stretch the sprite along the y-axis or x-axis.
profile
Growing Game Dev

0개의 댓글