# Behavior?

**URL:** https://discussions.unity.com/t/behavior/456634
**Category:** Scripting
**Tags:** Scripting
**Created:** [September 26, 2011, 2:58pm UTC](https://discussions.unity.com/t/behavior/456634 "2011-09-26T14:58:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MrAwesome](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@MrAwesome](https://discussions.unity.com/u/MrAwesome)
#### Post date: [September 26, 2011, 2:58pm UTC](https://discussions.unity.com/t/behavior/456634/1 "2011-09-26T14:58:07Z")

</div>

I got this  
The referenced script on this Behaviour is missing!  
Assert in file: C:/BuildAgent/work/842f9557127e852/Runtime/mono/MonoBehaviour.cpp at line: 1341

How to solve that?

---

<div class="post-metadata">

### Author: ![KelsoMRK](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/kelsomrk/32/205687_2.png) [@KelsoMRK](https://discussions.unity.com/u/KelsoMRK)
#### Post date: [September 26, 2011, 3:43pm UTC](https://discussions.unity.com/t/behavior/456634/2 "2011-09-26T15:43:29Z")

</div>

You added a Script as Component to a GameObject and then deleted or moved the file outside of the editor so it lost the reference. Click through your GameObjects and Prefabs and look for a missing reference to a script in the inspector.

---

<div class="post-metadata">

### Author: ![MrAwesome](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@MrAwesome](https://discussions.unity.com/u/MrAwesome)
#### Post date: [September 26, 2011, 5:38pm UTC](https://discussions.unity.com/t/behavior/456634/3 "2011-09-26T17:38:50Z")

</div>

ty Found it
