Search Issue Tracker
By Design
Votes
0
Found in
2017.4
2018.4
2018.4.2f1
2019.1
2019.2
2019.3
Issue ID
1163961
Regression
No
The error of " 'Light' does not contain a definition for 'SetLightDirty' " when building the project
To reproduce:
1. Open QA attached project TestsetLightDirty
2. Build and run
3. See console for errors
Actual result: the error appears
Expected result: there should be no error and the build should be completed
Reproduced in: 2017.4.29f1; 2018.4.3f1; 2019.1.7f1; 2019.2.0b6; 2019.3.0a6
Error: Assets\TestSetLightDirty.cs(11,9): error CS1061: 'Light' does not contain a definition for 'SetLightDirty' and no accessible extension method 'SetLightDirty' accepting a first argument of type 'Light' could be found (are you missing a using directive or an assembly reference?)
The code:
void Start()
{
Light light = gameObject.GetComponent<Light>();
light.SetLightDirty();
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Video is not rendered in Video Player when Material Override is set as the Render Mode and a SpriteRenderer is used
- Scene.isSubScene returns True when a Scene that is not a SubScene is loaded in a build
- The Search window does not show objects with inherited components when filtering by type
- Scrolling occurs when using a shortcut with "Wheel Up" or "Wheel Down" on a selection command in a scrollable Hierarchy window
- Shortcut fails to trigger when using KeyCode.WheelUp with ShortcutModifiers.Shift
Add comment