So when i try to get the script onto the spot light it wont work.

Forum Archive So when i try to get the script onto the spot light it wont work.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6707
    Hayden Gale
    Participant

      when i add my script to my spot light it comes with “Can’t add script component ‘Flickering lights’because the script class cannot be found. make sure that there are no compile errors and that the file nameand class name mach” Whitch i’ve checked and there were no errors in the console

      #25833
      Jonathan Gonzalez
      Participant

        That usually happens when your class name and file name don’t match exactly. When you first create a C# file and you rename it, it’ll change the class name to match your file name, but if you decide to change that file name afterward it won’t update the class name. More than likely the class name needs to be updated. 

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘So when i try to get the script onto the spot light it wont work.’ is closed to new replies.