- Home /
How do I fix this problem-it won't let me start my game in Unity because of an override problem
The override problem isn't letting me start my game and it is coming from a UnityScript that I was in the game, when I started the map. The error is:
"/Applications/Unity/Hub/Editor/2019.4.5f1/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/ScrollRect.cs(605,30): error CS0115: 'ScrollRect.IsActive()': no suitable method found to override"
The line is:
public override bool IsActive()
(i've attached a photo of the words around this line in the script)
This script is part of Unity's package. Have you modified it? There is no reason it would throw this error. Which version of this package do you have? Have you tried deinstalling it and reinstalling it again?
What is the base class of this ScrollRect
script?
I tried to fix it up when it popped up as an error, but then i changed it back to the original script as i only added 'true' on the line of the error. The version of the package that i have is Unity 2019.4.5f1 . If i de-install it-should I de-install the whole of unity or just the specific package that has the error?
Unity 2019.4.5f1 is the version of Unity itself, not the version of the UI package.
Uninstall the package from the package manager and install it again to see if it solves your error.
Another thing you could do:
Uninstall the package
Close the project
Delete the Library folder (next to Assets folder)
Open Unity again
Install the UI package again
Don't forget to make backup of your project first.
Answer by TigrisGames · Oct 20, 2020 at 02:25 PM
the overrided method must be identical same return type and parameters and name
@abodtoto16 how would you make sure they are the same?
Your answer
Follow this Question
Related Questions
Was gameObject.GetChild(childsName); a thing? 2 Answers
I have one final error to resolve if anybody knows how to fix this please tell me. 0 Answers
Help with basic AI script 1 Answer
Array Out of Index (When it Really is not??) 1 Answer
Cant fetch components from GameObjects stored in an array? 0 Answers