Question by
MistryStudios · Sep 18, 2019 at 04:44 PM ·
scripting problem
Unable to add script component to GameObject.
I'm trying to add a component script to a GameObject but an error pops up that says:
"can't add script behaviour AssemblyInfo.cs script must be derived from MonoBehaviour."
My file has the public class MyFileName : MonoBehaviour Does anybody know a fix for this issue?
Comment
Please provide the script that you are having trouble with and make sure it is copied exactly like it is in your IDE
Your answer
![](https://koobas.hobune.stream/wayback/20220612212310im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help with simple player movement 0 Answers
How to tilt NavMeshAgent? 0 Answers
FPS Controller 1 Answer
The requested feature is not implemented. 0 Answers
Can not show/hide a game object in Unity 3D V2018.3.9 f1 2 Answers