![]() Either you didn't declare it, or you declared it in a sub-context. The error was detected at the 22nd line, so it can't be at that line or it can be a semicolon you forgot the line before.Ģ) You are using a variable that doesn't exist in that context. For example, PlayerMovement.cs(22,49) means that the error occurred in the PlayerMouvement script, at the 22nd line. Secondly, you can see where the errors occurred following the path. Yellow errors are warning the script can - most of the time - work fully even with them, it is generally minor things such as a variable that is declared but never used. So first of all: Red errors are critical errors, meaning that the game cannot run when there are some. I see you solved your problem (only the red errors prevent your game from running), but I'm still gonna tell you what error is what, and hopefully, it will help you. However it is good to know why I got all of this errors and how should I fix them. I presume that only Red ones doesn't allow me to Run the game. 2 The system cannot find the file specified.Īssets/Scripts/PlayerMovement.cs(22,49): error CS0103: The name `movementVertical' does not exist in the current contextĪssets/Standard Assets/Utility/SimpleActivatorMenu.cs(10,16): warning CS0618: UnityEngine.GUIText' is obsolete:This component is part of the legacy UI system and will be removed in a future release.'Īssets/Standard Assets/CrossPlatformInput/Scripts/MobileControlRig.cs(48,37): warning CS0618: ' is obsolete:UnityEditor.activeBuildTargetChanged has been deprecated.Use instead.'Īssets/Standard Assets/CrossPlatformInput/Scripts/MobileControlRig.cs(55,37): warning CS0618: ' is obsolete:UnityEditor.activeBuildTargetChanged has been deprecated.Use instead.'Īssets/Standard Assets/Utility/ForcedReset.cs(6,27): warning CS0618: UnityEngine.GUITexture' is obsolete:This component is part of the legacy UI system and will be removed in a future release.'Īssets/Standard Assets/Utility/PlatformSpecificContent.cs(37,37): warning CS0618: ' is obsolete:UnityEditor.activeBuildTargetChanged has been deprecated.Use instead.'Īssets/Standard Assets/Utility/PlatformSpecificContent.cs(44,37): warning CS0618: ' is obsolete:UnityEditor.activeBuildTargetChanged has been deprecated.Use instead.'
0 Comments
Leave a Reply. |