Xlua release project error

Error message:

Assets/XLua/Gen/UnityEngine_LightWrap.cs(185,39): 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?)

 

solution:

1.Generator.cs->GetGenConfig method add the following

new List<string>(){"UnityEngine.Light", "shadowRadius"},
new List<string>(){"UnityEngine.Light", "SetLightDirty"},
new List<string>(){"UnityEngine.Light", "shadowAngle"},
new List<string>(){"UnityEngine.Light", "shadowAngle"}

2.Xlua->Generate Code Regenerate the code

Guess you like

Origin blog.csdn.net/a451319296/article/details/111653852
Recommended