BCE0005 Unknown identifier: 'FirstPersonController' Help please
So my code worked in unity 4.5 but when i start using unity 5 i tried to put the same code but it dose not work even after i edit the script, The problem that it is shown to me is : Unknown identifier: 'FirstPersonController'
Here is the line of code that has the problem :
GameObject.Find("FPSController").GetComponent(FirstPersonController).enabled = false;
I tried a lot to make it work but no use. Any help will be appreciated.
Answer by JesusKraisnik · Dec 03, 2016 at 07:46 AM
Include this in your script:
import UnityStandardAssets.Characters.FirstPerson;
Your answer
Follow this Question
Related Questions
(31,16): error CS1525: Unexpected symbol `(', expecting `)', `,', `;', `[', or `=' 2 Answers
Struggling with any input in UWP 0 Answers
How do i fix this error? Error CS1502 CS1503 1 Answer
Missing Reference Exception... please help, I am new to this! 2 Answers
CS1023 An embedded statement may not be a declaration or labeled statement help 1 Answer