# Chapter 12: Basic Animation Principles

**URL:** <https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496>\
**Category:** Unity Apprentice\
**Created:** [April 20, 2023, 1:59pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496 "2023-04-20T13:59:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![matviienko](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@matviienko](https://forums.kodeco.com/u/matviienko)\
**Post date:** [April 20, 2023, 1:59pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/1 "2023-04-20T13:59:10Z")

</div>

Hey all,

I get the following error when starting the scene from a starter project for Chapter 12: /Assets/Scenes/Kitchen/LightingData.asset’. File may be corrupted or was serialized with a newer version of Unity.

My Unity Editor version is 2021.3.47.

---

<div class="post-metadata">

**Author:** ![blackdragonbe](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/blackdragonbe/32/109865_2.png) [@blackdragonbe](https://forums.kodeco.com/u/blackdragonbe)\
**Post date:** [April 20, 2023, 4:35pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/2 "2023-04-20T16:35:57Z")

</div>

@dover Can you take a look? Thanks!

---

<div class="post-metadata">

**Author:** ![matviienko](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@matviienko](https://forums.kodeco.com/u/matviienko)\
**Post date:** [June 1, 2023, 9:13pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/3 "2023-06-01T21:13:46Z")

</div>

Just wanted to check on this issue again. Is there anything that can be done?

---

<div class="post-metadata">

**Author:** ![dover](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dover/32/109309_2.png) [@dover](https://forums.kodeco.com/u/dover)\
**Post date:** [June 2, 2023, 8:40am UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/4 "2023-06-02T08:40:38Z")

</div>

Hi @matviienko Sorry I missed the ping on your original post!

I’ve just opened the project in the new Unity 2022 LTS and don’t see that error. That said, it’s just a lighting file, so if it is causing you trouble you can delete it, then open **Window ▸ Rendering ▸ Lighting** and then click **Generate Lighting** and it will recreate the file for you.

 ![image](https://files.chunter.kodeco.com/original/3X/a/0/a06167655621b86d1835b32427a141bd7c6b7778.png)

---

<div class="post-metadata">

**Author:** ![matviienko](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@matviienko](https://forums.kodeco.com/u/matviienko)\
**Post date:** [June 2, 2023, 2:42pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/5 "2023-06-02T14:42:52Z")

</div>

Thanks for your quick reply @dover. This solves the problem. Although there are no longer any compilation errors, I get a strange rendering of the scene, which looks like either a matter of a setting or my hardware. Please the screenshot attached. Any idea what might be the problem?

 ![Screenshot 2023-06-02 at 16.40.32](https://files.chunter.kodeco.com/original/3X/2/c/2ca9389e196547240f6a1c5fa62f32823e5d8124.jpeg)

---

<div class="post-metadata">

**Author:** ![dover](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dover/32/109309_2.png) [@dover](https://forums.kodeco.com/u/dover)\
**Post date:** [June 3, 2023, 5:35pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/6 "2023-06-03T17:35:40Z")

</div>

Oh, I think I know what your issue is @matviienko The assets in this project are stored in Git with LFS. Make sure you do a `git lfs pull` to get all the assets pulled down from git.

---

<div class="post-metadata">

**Author:** ![matviienko](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@matviienko](https://forums.kodeco.com/u/matviienko)\
**Post date:** [June 5, 2023, 11:01am UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/7 "2023-06-05T11:01:44Z")

</div>

Oh yeah. That solved the problem. Thanks a lot for pointing it out @dover!

---

<div class="post-metadata">

**Author:** ![matviienko](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@matviienko](https://forums.kodeco.com/u/matviienko)\
**Post date:** [June 27, 2023, 3:08pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/8 "2023-06-27T15:08:28Z")

</div>

@dover I faced another issue related to the interaction. I can move Chef around with WASD but cannot Pick up ingredients using Space or Perform Wash / Chop action using Ctrl. Am I missing some settings?

---

<div class="post-metadata">

**Author:** ![dover](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dover/32/109309_2.png) [@dover](https://forums.kodeco.com/u/dover)\
**Post date:** [June 29, 2023, 4:58pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/9 "2023-06-29T16:58:53Z")

</div>

Hi @matviienko In Chapter 12 you will first need to set up the animations otherwise it won’t really look like you are picking up or washing up / chopping. But if you get close enough to a trough and press **Space** , then an ingredient _should_ be attached to your character if you then try to walk away. And if you walk to the sink and press **Ctrl** then you _should_ be prevented from moving for a few seconds.

If it’s still not working, you can check the player input actions in **Assets ▸ RW ▸ Scripts** to make sure the inputs are set.

 ![image](https://files.chunter.kodeco.com/original/3X/7/c/7cb6398c8f9c3e40fad787b3260221b321e6de74.jpeg)

One last thing you can check is that the pickup zones are correctly set on the **PlayerController** also. The player needs to be close enough to one of these zones to make the Pick up action.

![image](https://files.chunter.kodeco.com/original/3X/e/3/e300862518646f5f749fe1db80e4a8c04791b241.png)

---

<div class="post-metadata">

**Author:** ![matviienko](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@matviienko](https://forums.kodeco.com/u/matviienko)\
**Post date:** [June 29, 2023, 7:51pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/10 "2023-06-29T19:51:32Z")

</div>

Hi @dover. Thanks a lot for tips. Everything seems fine. I checked the input mapping and the pick up zones. I did not log button presses when I came to the pick up zone but pressed space and it did not work. Please see the screen recording here: [Screen Recording 2023-06-29 at 21.45.08.mov - Google Drive](https://drive.google.com/file/d/1gxMlRZbh7-HxoKFZVl35DHSGVBN-67Zh/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![dover](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dover/32/109309_2.png) [@dover](https://forums.kodeco.com/u/dover)\
**Post date:** [June 29, 2023, 9:19pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/11 "2023-06-29T21:19:07Z")

</div>

Very strange. Another thing to check is the Input Manager to ensure that the player input action asset is the one assigned here?

 ![image](https://files.chunter.kodeco.com/original/3X/f/0/f0d2e58a9a71220d0dbb9241392fb2a18b8ef50c.png)

Also the troughs should be on a layer named “Interactable”

Do you have a controller you could try to see if the inputs are working from a controller?

---

<div class="post-metadata">

**Author:** ![matviienko](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@matviienko](https://forums.kodeco.com/u/matviienko)\
**Post date:** [June 30, 2023, 3:05pm UTC](https://forums.kodeco.com/t/chapter-12-basic-animation-principles/186496/12 "2023-06-30T15:05:29Z")

</div>

Setting the layer for troughs to Interactable solved the issue. It was initially set to default. I completely forgot that I had the exact same problem when working through Chapter 6. Thanks again for help @dover!
