- Home /
Question by
GenOli · Apr 22, 2013 at 01:11 AM ·
gameobjectlight
Project Stealth tutorial error
Currently doing the Project Stealth tutorial using Unity 4 (free edition) and got so far #6 video (GameController) and for some reason getting this error...
Assets/Scripts/LastPlayerSighting.cs(21,79): error CS1061: Type `UnityEngine.GameObject[]' does not contain a definition for `light' and no extension method `light' of type `UnityEngine.GameObject[]' could be found (are you missing a using directive or an assembly reference?)
Tutorial link is here:
http://unity3d.com/learn/tutorials/projects/stealth/game-controller
Comment
Best Answer
Answer by GenOli · May 01, 2013 at 10:57 PM
Seems I used GameObject.FindGameObjectsWithTag instead of GameObject.FindGameObjectWithTag. Thanks for replying though.
Answer by TomCorwine · Apr 25, 2013 at 04:02 AM
Can you post your LastPlayerSighting.cs script? Are your lights tagged correctly?
Your answer
![](https://koobas.hobune.stream/wayback/20220613100758im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Very weird dark level loading? 4 Answers
How to detect if a GameObject is hit by a light 3 Answers
Save gameobject active 1 Answer
GameObject with DirectionalLight component not being iluminated 1 Answer