Skip to content

AssetBundle build faild #482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
omid3098 opened this issue Nov 6, 2018 · 3 comments
Closed

AssetBundle build faild #482

omid3098 opened this issue Nov 6, 2018 · 3 comments

Comments

@omid3098
Copy link

omid3098 commented Nov 6, 2018

When I try to build an AssetBundle it gives me this error:

Assets/XLua/Gen/UnityEngineLightWrap.cs(723,60): error CS1061: Type `UnityEngine.Light' does not contain a definition for `shadowRadius' and no extension method `shadowRadius' of type `UnityEngine.Light' could be found. Are you missing an assembly reference?
Assets/XLua/Gen/UnityEngineLightWrap.cs(737,60): error CS1061: Type `UnityEngine.Light' does not contain a definition for `shadowAngle' and no extension method `shadowAngle' of type `UnityEngine.Light' could be found. Are you missing an assembly reference?
Assets/XLua/Gen/UnityEngineLightWrap.cs(1090,35): error CS1061: Type `UnityEngine.Light' does not contain a definition for `shadowRadius' and no extension method `shadowRadius' of type `UnityEngine.Light' could be found. Are you missing an assembly reference?
Assets/XLua/Gen/UnityEngineLightWrap.cs(1105,35): error CS1061: Type `UnityEngine.Light' does not contain a definition for `shadowAngle' and no extension method `shadowAngle' of type `UnityEngine.Light' could be found. Are you missing an assembly reference?

How to reproduce:

  • Make a simple Lua file:
local speed = 50
local unity = CS.UnityEngine
function update()
    local r = unity.Vector3(1, 1, 1) * unity.Time.deltaTime * speed
    self.transform:Rotate(r)
end
  • Add it to LuaBehaviour on a gameobject.
  • Make a prefab from gameobject.
  • add game object to an asset bundle.
  • try to build AssetBundle for android platform.

Os: Linux x64 (Arch)
Unity: 2018.2.10f1

@chexiongsheng
Copy link
Collaborator

@omid3098
Copy link
Author

omid3098 commented Nov 6, 2018

Thank you dude for your fast and accurate response!

@omid3098 omid3098 closed this as completed Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants