Question by
Radioactive32 · Jan 16, 2021 at 01:56 AM ·
compiler error
Invalid ")" in an example from the Unity Docs
The title might be misleading. I have currently have:
private Light light1 = lights.GetComponent<"spotlight1">();
But then the compiler gives the following error:
Assets\lightRig\controlpanel.cs(11,62): Invalid expression term ')'
I then copied the example from the documentation and it yielded the same error.
Comment
Your answer
Follow this Question
Related Questions
error CS0118 'charanim.CameraTurn' is a field but a 'type' was 'expected' 1 Answer
why do i keep getting compiler errors even though my script has no errors? 2 Answers
DontDestroyOnLoad not compiling in Visual Studio 2 Answers
VS Code showing errors in Editor scripts while referencing another class 1 Answer
Multiple errors after updating asset package from store 0 Answers