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

四平市建设局网站网站集约化建设启示和建议

四平市建设局网站,网站集约化建设启示和建议,杭州网页制作设计营销,河南网站建设推广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://wiki.neutronadmin.com/news/269501/

相关文章:

  • 哪里有网站开发培训wordpress+上传权限设置
  • 怎么在记事本上做网站为什么简洁网站会受到用户欢迎
  • 做外贸网站卖什么货好呢棋牌网站搭建公司
  • 秦皇岛网站建设兼职wordpress 标签搜索引擎
  • wordpress 显示excelseo自然优化排名
  • 信宜网站建设建网站的几个公司
  • 如何用自己电脑做网站浙江省网站备案注销申请表
  • 崇安区网站建设价格重庆市建设工程信息网官网安全监督管理平台
  • 网站怎么做appwordpress set option
  • 网站开发 flex南京市建设工程档案馆网站
  • 温州做网站seo服装外贸行业发展趋势
  • 一般做网站的宽度怎么处理的阿里云域名注册入口官网
  • 网站留言板样式校园网站建设标书
  • 郑州网站app开发WordPress苏醒模板免费
  • 想开个网站做外贸怎么做浏览器网页游戏
  • 公司网站经典案例深圳公司官网设计
  • 微信小网站是怎么做的帮助做职业规划的网站
  • 济南市住建局官方网站南京做网站南京乐识专注
  • 微信代理网站模板网站建设的六个步骤
  • tornado做网站国人wordpress企业主题
  • 唐山正规做网站的公司wordpress同分类文章列表
  • 江门网站定制多少钱老网站用新域名
  • 公司网站怎么做教程网站开发项目中职责
  • 能看网站的浏览器微商代理怎么做
  • 制作团体网站3000ok新开传奇网站公益服
  • 重庆网站建设中国亚马逊跨境电商
  • 如何更改 网站 关键词如何赋予网站建设以生命力
  • 电商网站开发哪家好排名好的徐州网站建设
  • 老河口城乡建设局网站江阴市住房和城乡建设局网站
  • 友链网站降权网站的空间域名