当前位置: 首页 > news >正文

绍兴柯桥建设局网站网站建设教程搭建湖南岚鸿

绍兴柯桥建设局网站,网站建设教程搭建湖南岚鸿,wordpress 移动端优势,上传网站步骤Xlua生成wrap文件#xff0c;自带添加了ref字段报错 例如Material生成MaterialWrap时#xff0c;EnableKeyword(in LocalKeyword keyword);带着in关键字#xff0c;所以在Wrap文件中会自动在参数前生成ref关键字导致编译不过 解决办法#xff1a; 换Xlua版本就好了#…  Xlua生成wrap文件自带添加了ref字段报错 例如Material生成MaterialWrap时EnableKeyword(in LocalKeyword keyword);带着in关键字所以在Wrap文件中会自动在参数前生成ref关键字导致编译不过 解决办法 换Xlua版本就好了也不知道我xlua当时从哪个版本copy过来的换了xlua-master里的Xlua源码再次生成wrap就没问题了。 打包时Xlua Wrap文件报错 Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(169,57): error CS1061: AudioSource does not contain a definition for PlayOnGamepad and no accessible extension method PlayOnGamepad accepting a first argument of type AudioSource could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(197,57): error CS1061: AudioSource does not contain a definition for DisableGamepadOutput and no accessible extension method DisableGamepadOutput accepting a first argument of type AudioSource could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(227,57): error CS1061: AudioSource does not contain a definition for SetGamepadSpeakerMixLevel and no accessible extension method SetGamepadSpeakerMixLevel accepting a first argument of type AudioSource could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(256,57): error CS1061: AudioSource does not contain a definition for SetGamepadSpeakerMixLevelDefault and no accessible extension method SetGamepadSpeakerMixLevelDefault accepting a first argument of type AudioSource could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(286,57): error CS1061: AudioSource does not contain a definition for SetGamepadSpeakerRestrictedAudio and no accessible extension method SetGamepadSpeakerRestrictedAudio accepting a first argument of type AudioSource could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(311,33): error CS0234: The type or namespace name GamepadSpeakerOutputType does not exist in the namespace UnityEngine (are you missing an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(313,63): error CS0117: AudioSource does not contain a definition for GamepadSpeakerSupportsOutputType Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(982,54): error CS1061: AudioSource does not contain a definition for gamepadSpeakerOutputType and no accessible extension method gamepadSpeakerOutputType accepting a first argument of type AudioSource could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(1396,29): error CS0234: The type or namespace name GamepadSpeakerOutputType does not exist in the namespace UnityEngine (are you missing an assembly reference?) Assets\XLua\Gen\UnityEngine_AudioSourceWrap.cs(1397,23): error CS1061: AudioSource does not contain a definition for gamepadSpeakerOutputType and no accessible extension method gamepadSpeakerOutputType accepting a first argument of type AudioSource could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_MeshRendererWrap.cs(137,60): error CS1061: MeshRenderer does not contain a definition for scaleInLightmap and no accessible extension method scaleInLightmap accepting a first argument of type MeshRenderer could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_MeshRendererWrap.cs(151,54): error CS1061: MeshRenderer does not contain a definition for receiveGI and no accessible extension method receiveGI accepting a first argument of type MeshRenderer could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_MeshRendererWrap.cs(165,61): error CS1061: MeshRenderer does not contain a definition for stitchLightmapSeams and no accessible extension method stitchLightmapSeams accepting a first argument of type MeshRenderer could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_MeshRendererWrap.cs(211,35): error CS1061: MeshRenderer does not contain a definition for scaleInLightmap and no accessible extension method scaleInLightmap accepting a first argument of type MeshRenderer could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_MeshRendererWrap.cs(227,23): error CS1061: MeshRenderer does not contain a definition for receiveGI and no accessible extension method receiveGI accepting a first argument of type MeshRenderer could be found (are you missing a using directive or an assembly reference?) Assets\XLua\Gen\UnityEngine_MeshRendererWrap.cs(242,35): error CS1061: MeshRenderer does not contain a definition for stitchLightmapSeams and no accessible extension method stitchLightmapSeams accepting a first argument of type MeshRenderer could be found (are you missing a using directive or an assembly reference?) Error building Player because scripts had compiler errors解决方法 Xlua的配置文件有个专门添加[LuaCallCSharp]、[CSharpCallLua]、[BlackList]的方法在xlua-master源码里是ExampleGenConfig.cs或者ExampleConfig.cs BlackList的作用生成的wrap文件中屏蔽字段和方法 BlackList如何配置 屏蔽变量和方法的方式如下都罗列出来了对号入座。 屏蔽变量  new Liststring(){UnityEngine.AudioSource, gamepadSpeakerOutputType}, 屏蔽无参方法 new Liststring(){UnityEngine.AudioSource, DisableGamepadOutput}, 屏蔽参数是Int32的方法 new Liststring(){UnityEngine.AudioSource, PlayOnGamepad,System.Int32}, 屏蔽多参数方法  new Liststring(){UnityEngine.AudioSource, SetGamepadSpeakerRestrictedAudio,System.Int32,System.Boolean}, 请注意AudioSource前面的命名空间不能省略 找到BlackList //黑名单[BlackList]public static ListListstring BlackList new ListListstring() {new Liststring(){System.Xml.XmlNodeList, ItemOf},new Liststring(){UnityEngine.WWW, movie},#if UNITY_WEBGLnew Liststring(){UnityEngine.WWW, threadPriority},#endifnew Liststring(){UnityEngine.Texture2D, alphaIsTransparency},new Liststring(){UnityEngine.Security, GetChainOfTrustValue},new Liststring(){UnityEngine.CanvasRenderer, onRequestRebuild},new Liststring(){UnityEngine.Light, areaSize},new Liststring(){UnityEngine.Light, lightmapBakeType},#if UNITY_ANDROIDnew Liststring(){UnityEngine.Light, SetLightDirty},new Liststring(){UnityEngine.Light, shadowRadius},new Liststring(){UnityEngine.Light, shadowAngle},#endifnew Liststring(){UnityEngine.WWW, MovieTexture},new Liststring(){UnityEngine.WWW, GetMovieTexture},new Liststring(){UnityEngine.AnimatorOverrideController, PerformOverrideClipListCleanup},#if !UNITY_WEBPLAYERnew Liststring(){UnityEngine.Application, ExternalEval},#endifnew Liststring(){UnityEngine.GameObject, networkView}, //4.6.2 not supportnew Liststring(){UnityEngine.Component, networkView}, //4.6.2 not supportnew Liststring(){System.IO.FileInfo, GetAccessControl, System.Security.AccessControl.AccessControlSections},new Liststring(){System.IO.FileInfo, SetAccessControl, System.Security.AccessControl.FileSecurity},new Liststring(){System.IO.DirectoryInfo, GetAccessControl, System.Security.AccessControl.AccessControlSections},new Liststring(){System.IO.DirectoryInfo, SetAccessControl, System.Security.AccessControl.DirectorySecurity},new Liststring(){System.IO.DirectoryInfo, CreateSubdirectory, System.String, System.Security.AccessControl.DirectorySecurity},new Liststring(){System.IO.DirectoryInfo, Create, System.Security.AccessControl.DirectorySecurity},new Liststring(){UnityEngine.MonoBehaviour, runInEditMode},}; 然后把我下面这一段加入到中间 //Texturenew Liststring(){UnityEngine.Texture, imageContentsHash},//MeshRenderernew Liststring(){UnityEngine.MeshRenderer, scaleInLightmap},new Liststring(){UnityEngine.MeshRenderer, receiveGI},new Liststring(){UnityEngine.MeshRenderer, stitchLightmapSeams},new Liststring(){UnityEngine.MeshRenderer, scaleInLightmap},new Liststring(){UnityEngine.MeshRenderer, receiveGI},new Liststring(){UnityEngine.MeshRenderer, stitchLightmapSeams},//AudioSourcenew Liststring(){UnityEngine.AudioSource, gamepadSpeakerOutputType},new Liststring(){UnityEngine.AudioSource, PlayOnGamepad,System.Int32},new Liststring(){UnityEngine.AudioSource, DisableGamepadOutput},new Liststring(){UnityEngine.AudioSource, SetGamepadSpeakerMixLevel,System.Int32,System.Int32},new Liststring(){UnityEngine.AudioSource, SetGamepadSpeakerMixLevelDefault,System.Int32},new Liststring(){UnityEngine.AudioSource, SetGamepadSpeakerRestrictedAudio,System.Int32,System.Boolean},new Liststring(){UnityEngine.AudioSource, GamepadSpeakerSupportsOutputType,UnityEngine.GamepadSpeakerOutputType}, 再次执行Clear Generated Code、Generated Code后会发现Wrap文件里的相关变量和方法都消失了。再次打包则不会报错
http://www.zqtcl.cn/news/666871/

相关文章:

  • 山东省职业能力建设处网站dz论坛怎么做视频网站吗
  • 郑州专业做网站的公司今天郑州最新通告
  • wap网站引导页特效wordpress 文章 数据库
  • 做建筑效果图最好的网站做网站是如果盈利的
  • 企业网站seo托管怎么做seo公司培训
  • 自己做网站不想买空间 自己电脑可以做服务器吗?下载建设网站软件
  • 有服务器自己怎么做网站百度广告电话号码是多少
  • 一个网站 两个数据库沈阳市住房和城乡建设厅网站
  • 重庆建站网站流程及费用制作网页界面工具
  • 设计师家园官网wordpress 4.9 优化
  • 主机屋空间安装织梦后台程序后怎么弄成淘宝客网站襄阳网站制作
  • 怎么建设分销模式手机网站宜昌做网站的公司
  • 网上商城网站设计网页设计作业欣赏
  • 育才网站建设网站访问慢原因
  • 网站建设方案 备案品牌网站推广软件
  • 桓台县建设局网站前端开发入门培训
  • 前端怎么在猪八戒网站接单做烟台网站开发技术
  • 济南烨铭网站建设做英文网站2014
  • 哪个餐饮店微网站做的有特色3d动画制作收费标准
  • h5旅游网站开发wordpress的站点地址如何配置
  • 网站正在维护中 模板招远网站建设
  • 福田欧曼银河报价seo文章是什么
  • 古云网站建设模具培训网站建设
  • 帮助企业做网站的销售卫浴洁具公司网站模板
  • 解释seo网站推广网站域名和空间费用
  • 深圳市珠宝网站建设手机网站框架
  • 晋城推广型网站开发dw做网站模板
  • 万网一个ip建立多个网站网页设计注册页面代码
  • 网站建设6000元地方门户网站有哪些
  • 十大SEO网站外链建设误区排版设计教程入门初学者