Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
25d1be3
New translations spinning-heart.gif (French)
sashamishcheriakova Sep 19, 2023
9607b15
New translations spinning-heart.gif (Arabic)
sashamishcheriakova Sep 19, 2023
faaffe4
New translations spinning-heart.gif (Greek)
sashamishcheriakova Sep 19, 2023
a28fdc9
New translations spinning-heart.gif (Japanese)
sashamishcheriakova Sep 19, 2023
f51ccd6
New translations spinning-heart.gif (Dutch)
sashamishcheriakova Sep 19, 2023
afb23a0
New translations spinning-heart.gif (Polish)
sashamishcheriakova Sep 19, 2023
da5b40a
New translations spinning-heart.gif (Xhosa)
sashamishcheriakova Sep 19, 2023
9681ff2
New translations spinning-heart.gif (Zulu)
sashamishcheriakova Sep 19, 2023
8c17045
New translations spinning-heart.gif (English)
sashamishcheriakova Sep 19, 2023
3e5240d
New translations spinning-heart.gif (Portuguese, Brazilian)
sashamishcheriakova Sep 19, 2023
2c1e7cf
New translations spinning-heart.gif (Marathi)
sashamishcheriakova Sep 19, 2023
4ed943e
New translations spinning-heart.gif (Croatian)
sashamishcheriakova Sep 19, 2023
4b3f6e1
New translations spinning-heart.gif (Hindi)
sashamishcheriakova Sep 19, 2023
894a8f3
New translations spinning-heart.gif (Welsh)
sashamishcheriakova Sep 19, 2023
bc6ee8e
New translations spinning-heart.gif (Kannada)
sashamishcheriakova Sep 19, 2023
e4a2e5e
New translations spinning-heart.gif (Swahili)
sashamishcheriakova Sep 19, 2023
6918370
New translations spinning-heart.gif (Odia)
sashamishcheriakova Sep 19, 2023
2333f02
New translations spinning-heart.gif (Spanish, Latin America)
sashamishcheriakova Sep 19, 2023
05818e5
New translations meta.yml (French)
sashamishcheriakova Sep 19, 2023
ae110f0
New translations meta.yml (Arabic)
sashamishcheriakova Sep 19, 2023
4899218
New translations meta.yml (Greek)
sashamishcheriakova Sep 19, 2023
a4c490e
New translations meta.yml (Japanese)
sashamishcheriakova Sep 19, 2023
4e4d234
New translations meta.yml (Dutch)
sashamishcheriakova Sep 19, 2023
f15a6bc
New translations meta.yml (Polish)
sashamishcheriakova Sep 19, 2023
5725844
New translations meta.yml (Xhosa)
sashamishcheriakova Sep 19, 2023
1236e70
New translations meta.yml (Zulu)
sashamishcheriakova Sep 19, 2023
4b26903
New translations meta.yml (English)
sashamishcheriakova Sep 19, 2023
51372f8
New translations meta.yml (Portuguese, Brazilian)
sashamishcheriakova Sep 19, 2023
016cde7
New translations meta.yml (Marathi)
sashamishcheriakova Sep 19, 2023
cf5b8e8
New translations meta.yml (Croatian)
sashamishcheriakova Sep 19, 2023
5544e23
New translations meta.yml (Hindi)
sashamishcheriakova Sep 19, 2023
0286e94
New translations meta.yml (Welsh)
sashamishcheriakova Sep 19, 2023
ecac52e
New translations meta.yml (Kannada)
sashamishcheriakova Sep 19, 2023
4e52fad
New translations meta.yml (Swahili)
sashamishcheriakova Sep 19, 2023
5498c1d
New translations meta.yml (Odia)
sashamishcheriakova Sep 19, 2023
c176d45
New translations meta.yml (Spanish, Latin America)
sashamishcheriakova Sep 19, 2023
58a8491
New translations step_1.md (French)
sashamishcheriakova Sep 19, 2023
f28695e
New translations step_1.md (Arabic)
sashamishcheriakova Sep 19, 2023
782ddc3
New translations step_1.md (Greek)
sashamishcheriakova Sep 19, 2023
6b290ff
New translations step_1.md (Japanese)
sashamishcheriakova Sep 19, 2023
63884f2
New translations step_1.md (Dutch)
sashamishcheriakova Sep 19, 2023
68afa4a
New translations step_1.md (Polish)
sashamishcheriakova Sep 19, 2023
00786e2
New translations step_1.md (Xhosa)
sashamishcheriakova Sep 19, 2023
bd3b3b1
New translations step_1.md (Zulu)
sashamishcheriakova Sep 19, 2023
f3b5af3
New translations step_1.md (English)
sashamishcheriakova Sep 19, 2023
9000f14
New translations step_1.md (Portuguese, Brazilian)
sashamishcheriakova Sep 19, 2023
e28180c
New translations step_1.md (Marathi)
sashamishcheriakova Sep 19, 2023
e02f587
New translations step_1.md (Croatian)
sashamishcheriakova Sep 19, 2023
58092d6
New translations step_1.md (Hindi)
sashamishcheriakova Sep 19, 2023
23c60c9
New translations step_1.md (Welsh)
sashamishcheriakova Sep 19, 2023
e8b9b04
New translations step_1.md (Kannada)
sashamishcheriakova Sep 19, 2023
5d0ab40
New translations step_1.md (Swahili)
sashamishcheriakova Sep 19, 2023
0807030
New translations step_1.md (Odia)
sashamishcheriakova Sep 19, 2023
dac6ff2
New translations step_1.md (Spanish, Latin America)
sashamishcheriakova Sep 19, 2023
5a68775
New translations unity-comments.txt (French)
sashamishcheriakova Sep 19, 2023
7ef416a
New translations unity-comments.txt (Arabic)
sashamishcheriakova Sep 19, 2023
2cbfd06
New translations unity-comments.txt (Greek)
sashamishcheriakova Sep 19, 2023
70c9581
New translations unity-comments.txt (Japanese)
sashamishcheriakova Sep 19, 2023
8f1aefc
New translations unity-comments.txt (Dutch)
sashamishcheriakova Sep 19, 2023
5ccc20c
New translations unity-comments.txt (Polish)
sashamishcheriakova Sep 19, 2023
da6e45d
New translations unity-comments.txt (Xhosa)
sashamishcheriakova Sep 19, 2023
f2885d7
New translations unity-comments.txt (Zulu)
sashamishcheriakova Sep 19, 2023
d570963
New translations unity-comments.txt (English)
sashamishcheriakova Sep 19, 2023
7e4c16c
New translations unity-comments.txt (Portuguese, Brazilian)
sashamishcheriakova Sep 19, 2023
24c9664
New translations unity-comments.txt (Marathi)
sashamishcheriakova Sep 19, 2023
716e1a2
New translations unity-comments.txt (Croatian)
sashamishcheriakova Sep 19, 2023
f1a51dc
New translations unity-comments.txt (Hindi)
sashamishcheriakova Sep 19, 2023
81ff263
New translations unity-comments.txt (Welsh)
sashamishcheriakova Sep 19, 2023
86d218d
New translations unity-comments.txt (Kannada)
sashamishcheriakova Sep 19, 2023
5817485
New translations unity-comments.txt (Swahili)
sashamishcheriakova Sep 19, 2023
68ab9e8
New translations unity-comments.txt (Odia)
sashamishcheriakova Sep 19, 2023
68418aa
New translations unity-comments.txt (Spanish, Latin America)
sashamishcheriakova Sep 19, 2023
d79d3ab
New translations unity-translatable.txt (French)
sashamishcheriakova Sep 19, 2023
7cd291f
New translations unity-translatable.txt (Arabic)
sashamishcheriakova Sep 19, 2023
ea978a7
New translations unity-translatable.txt (Greek)
sashamishcheriakova Sep 19, 2023
a5656bc
New translations unity-translatable.txt (Japanese)
sashamishcheriakova Sep 19, 2023
d358507
New translations unity-translatable.txt (Dutch)
sashamishcheriakova Sep 19, 2023
6490c29
New translations unity-translatable.txt (Polish)
sashamishcheriakova Sep 19, 2023
7c358d8
New translations unity-translatable.txt (Xhosa)
sashamishcheriakova Sep 19, 2023
cd93623
New translations unity-translatable.txt (Zulu)
sashamishcheriakova Sep 19, 2023
ed1df06
New translations unity-translatable.txt (English)
sashamishcheriakova Sep 19, 2023
7d38bcd
New translations unity-translatable.txt (Portuguese, Brazilian)
sashamishcheriakova Sep 19, 2023
9e7ea1c
New translations unity-translatable.txt (Marathi)
sashamishcheriakova Sep 19, 2023
e9bb3b9
New translations unity-translatable.txt (Croatian)
sashamishcheriakova Sep 19, 2023
bc3a2bf
New translations unity-translatable.txt (Hindi)
sashamishcheriakova Sep 19, 2023
4d13bde
New translations unity-translatable.txt (Welsh)
sashamishcheriakova Sep 19, 2023
78f2da2
New translations unity-translatable.txt (Kannada)
sashamishcheriakova Sep 19, 2023
9a332b6
New translations unity-translatable.txt (Swahili)
sashamishcheriakova Sep 19, 2023
873455e
New translations unity-translatable.txt (Odia)
sashamishcheriakova Sep 19, 2023
f058701
New translations unity-translatable.txt (Spanish, Latin America)
sashamishcheriakova Sep 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ar-SA/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ar-SA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
29 changes: 29 additions & 0 deletions ar-SA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif)

In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController').

Double-click on your new script to open it in the code editor.

Create a variable to control the 'spinSpeed' and code to spin your GameObject:

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

You can rotate about the X, Y, or Z axes by amending the direction in your code:
+ Vector3.right / Vector3.left = Rotation about the X axis
+ Vector3.up / Vector3.down = Rotation about the Y axis
+ Vector3.forward / Vector3.back = Rotation about the Z axis

**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject.
3 changes: 3 additions & 0 deletions ar-SA/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update is called once per frame

You can also spin backward, up, down, left and right
1 change: 1 addition & 0 deletions ar-SA/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinSpeed
Binary file added cy-GB/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions cy-GB/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
29 changes: 29 additions & 0 deletions cy-GB/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif)

In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController').

Double-click on your new script to open it in the code editor.

Create a variable to control the 'spinSpeed' and code to spin your GameObject:

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

You can rotate about the X, Y, or Z axes by amending the direction in your code:
+ Vector3.right / Vector3.left = Rotation about the X axis
+ Vector3.up / Vector3.down = Rotation about the Y axis
+ Vector3.forward / Vector3.back = Rotation about the Z axis

**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject.
3 changes: 3 additions & 0 deletions cy-GB/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update is called once per frame

You can also spin backward, up, down, left and right
1 change: 1 addition & 0 deletions cy-GB/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinSpeed
Binary file added el-GR/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions el-GR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
29 changes: 29 additions & 0 deletions el-GR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif)

In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController').

Double-click on your new script to open it in the code editor.

Create a variable to control the 'spinSpeed' and code to spin your GameObject:

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

You can rotate about the X, Y, or Z axes by amending the direction in your code:
+ Vector3.right / Vector3.left = Rotation about the X axis
+ Vector3.up / Vector3.down = Rotation about the Y axis
+ Vector3.forward / Vector3.back = Rotation about the Z axis

**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject.
3 changes: 3 additions & 0 deletions el-GR/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update is called once per frame

You can also spin backward, up, down, left and right
1 change: 1 addition & 0 deletions el-GR/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinSpeed
Binary file added en-US/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions en-US/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
29 changes: 29 additions & 0 deletions en-US/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif)

In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController').

Double-click on your new script to open it in the code editor.

Create a variable to control the 'spinSpeed' and code to spin your GameObject:

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

You can rotate about the X, Y, or Z axes by amending the direction in your code:
+ Vector3.right / Vector3.left = Rotation about the X axis
+ Vector3.up / Vector3.down = Rotation about the Y axis
+ Vector3.forward / Vector3.back = Rotation about the Z axis

**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject.
3 changes: 3 additions & 0 deletions en-US/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update is called once per frame

You can also spin backward, up, down, left and right
1 change: 1 addition & 0 deletions en-US/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinSpeed
Binary file added es-LA/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions es-LA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
29 changes: 29 additions & 0 deletions es-LA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif)

In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController').

Double-click on your new script to open it in the code editor.

Create a variable to control the 'spinSpeed' and code to spin your GameObject:

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

You can rotate about the X, Y, or Z axes by amending the direction in your code:
+ Vector3.right / Vector3.left = Rotation about the X axis
+ Vector3.up / Vector3.down = Rotation about the Y axis
+ Vector3.forward / Vector3.back = Rotation about the Z axis

**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject.
3 changes: 3 additions & 0 deletions es-LA/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update is called once per frame

You can also spin backward, up, down, left and right
1 change: 1 addition & 0 deletions es-LA/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinSpeed
Binary file added fr-FR/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions fr-FR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Créer un GameObject qui tourne
hero_image: images/banner.png
description: Créer un GameObject qui tourne
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Créer un GameObject qui tourne
29 changes: 29 additions & 0 deletions fr-FR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![La vue Game montrant un GameObject tournant autour de son axe Y.](images/spinning-heart.gif)

Dans la fenêtre Inspector pour le GameObject, clique sur « Add Component » et choisis « New script », puis donne à ton script un nom approprié (par exemple « ItemController »).

Double-clique sur ton nouveau script pour l'ouvrir dans l'éditeur de code.

Crée une variable pour contrôler la « vitesserotation » et le code pour faire tourner ton GameObject :

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

Tu peux effectuer une rotation sur les axes X, Y ou Z en modifiant la direction dans ton code :
+ Vector3.right / Vector3.left = Rotation sur l'axe X
+ Vector3.up / Vector3.down = Rotation sur l'axe Y
+ Vector3.forward / Vector3.back = Rotation sur l'axe Z

**Astuce :** si tu as ajouté un « Particle System » à ton GameObject, modifie la propriété « Simulation Space » dans la fenêtre Inspector en `World` afin qu'il ne tourne pas avec ton GameObject.
3 changes: 3 additions & 0 deletions fr-FR/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update est appelée une fois par image

Tu peux aussi tourner en arrière, en haut, en bas, à gauche et à droite
1 change: 1 addition & 0 deletions fr-FR/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vitesserotation
Binary file added hi-IN/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions hi-IN/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
29 changes: 29 additions & 0 deletions hi-IN/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif)

In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController').

Double-click on your new script to open it in the code editor.

Create a variable to control the 'spinSpeed' and code to spin your GameObject:

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

You can rotate about the X, Y, or Z axes by amending the direction in your code:
+ Vector3.right / Vector3.left = Rotation about the X axis
+ Vector3.up / Vector3.down = Rotation about the Y axis
+ Vector3.forward / Vector3.back = Rotation about the Z axis

**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject.
3 changes: 3 additions & 0 deletions hi-IN/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update is called once per frame

You can also spin backward, up, down, left and right
1 change: 1 addition & 0 deletions hi-IN/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinSpeed
Binary file added hr-HR/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions hr-HR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
29 changes: 29 additions & 0 deletions hr-HR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif)

In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController').

Double-click on your new script to open it in the code editor.

Create a variable to control the 'spinSpeed' and code to spin your GameObject:

--- code ---
---
language: cs
---

public float spinSpeed = 5.0f;

// Update is called once per frame
void Update()
{
transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right
}

--- /code ---

You can rotate about the X, Y, or Z axes by amending the direction in your code:
+ Vector3.right / Vector3.left = Rotation about the X axis
+ Vector3.up / Vector3.down = Rotation about the Y axis
+ Vector3.forward / Vector3.back = Rotation about the Z axis

**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject.
3 changes: 3 additions & 0 deletions hr-HR/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Update is called once per frame

You can also spin backward, up, down, left and right
1 change: 1 addition & 0 deletions hr-HR/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinSpeed
Binary file added ja-JP/images/spinning-heart.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ja-JP/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Create a GameObject that spins
hero_image: images/banner.png
description: Create a GameObject that spins
version: 4
listed: false
copyedit: false
last_tested: "2021-11-18"
steps:
-
title: Create a GameObject that spins
Loading