ERROR CS0111
Assets\Scrips\SelectionManager.cs(9,18): error CS0111: Type 'SelectionManager' already defines a member called 'Start' with the same parameter types
What am i doing wrong?
17 Replies
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/Maybe
MonoBehaviour
already defines Start()
and you're hiding it instead of overwriting or something>Something is defining
Start()
already and the question is what. The class definition you've given isn't partial, which means it isn't either a source generator or another code file... Does the unity toolchain do any kind of compile time code generation?clear last build ,ctrl+f search for 'start' term occourance in ur document..correct it..run..
so now i did get the other error, just wanna say im new to coding 🙂
Assets\Scrips\SelectionManager.cs(7,5): error CS0246: The type or namespace name 'Text' could not be found (are you missing a using directive or an assembly reference?)
Could anyone maybe tell me whats wrong here, tried 4 hours last night 🙂
What is
Text
?
What namespace is it in?
Import that namespace
If you have VS set up correctly to work with Unity, you should be able to use quick fixes to auto-import ithow does it auto import it?
Thanks,
after installing the unity update it deleted my files in the project, any way getting them back?
Unity update should not have done anything of the sort
If it somehow did... restore the files from your remote Git repo
Or some other backup
You do have backups, right?
i didnt make some
but i did build the game and ran it can i take the files from there?
No
You can't unbake a cake
isnt there a way getting it back? it didnt remove the project only the scripts and gameobjects and so
but when i open visual studio i can find the scripts for the game
I don't have much experience with Unity, alas
Try asking in $unity server
If the code still physically exists though, it should be fine
Probably a matter of Unity not picking it up somehow
its wierd