大约有 279 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
...=function(){ if( Laya.Browser.window.conch ) { var content=Laya.Browser.context; var width=800; var height=500; Laya.Browser.window.conch.captureScreen(function(content,width,height){ Laya.Browser.window.conch.saveAsPng( content,width,height,Laya.Browser.window.conch.getCachePath()+"/test.png" ); })...
来源: Laya_社区 发布时间: 20180227
...> <html> <head> <title></title> <style type="text/css"> .p1{font-family:"Arial bold"; color: #583823;font-size: 25px} .p2{font-family:"Times New Roman";color: #583823;font-size: 25px} .p3{font-family:"Arial Black";color: #583823;font-size: 25px} .p4{font-family:"Aria...
来源: Laya_社区 发布时间: 20180629
... Could not attach to main target 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. Laya2.12.0项目出现卡顿现象(必现) layaair3.1.3版本打出的项目中的text与label组件在vivo小游戏引擎1105及以下文字显示异常 laya3.2.5打包 android apk后渲染...
来源: Laya_社区 发布时间: 20250804
...到bin/libs目录下,在index.html文件加入语句: <script type="text/javascript" src="libs/jweixin-1.2.0.js"></script> 然后新定义weixin.d.ts文件,加入以下两个语句: declare var wx: any; declare var WeixinJSBridge: any; 以声明使用wx对象 在初...
来源: Laya_社区 发布时间: 20180724
...ate(this,this.onLoading)); } onLoading(progress){ this.gameLoading.loadTxt.text="Loading..."+(progress*100)+"%"; } onLoaded() { this.cacheAnimation(); var waterBg = Laya.Sprite.fromImage("res/bg.png"); Laya.stage.addChild(waterBg); //创建背景 this.bg = []; this.bg[0] = new BackGround("res/bg1.pn...
来源: Laya_社区 发布时间: 20170103
...游戏中切换动画无法显示 layaair3.1.3版本打出的项目中的text与label组件在vivo小游戏引擎1105及以下文字显示异常 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 打包QQ小游戏,rayCast发出的射线检测到的物体...
来源: Laya_社区 发布时间: 20250929
...微信小游戏运行时显示sprite位置会出现错误。图1和图2的text是直接放在Scene中的sprite,作为标记位置用。图一的AAAA是正常IDE和本地调试的显示位置,图2的AAAA是打包到微信后运行的位置,出现明显偏差。 附件 : --> 2025-06-18 添加评...
来源: Laya_社区 发布时间: 20250618
... map.removeSelf() play.removeSelf() over = new GameOverUI() over.txt_score.text = "25" over.btn_restart.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(over); } hero类: (function() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = H...
来源: Laya_社区 发布时间: 20180911
...IDE\resources\app\node_modules\rollup\dist\rollup.js:16065:38) at RollupContext.error (E:\LayaAirIDE\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:17187:30) at lodash_3 (E:\LayaAirIDE\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin...
来源: Laya_社区 发布时间: 20191227
...创建新的script节点 new_element1.setAttribute("type", "text/javascript"); // new_element1.setAttribute("src", jsPAth); //LayaNative不支持 new_element1.src = jsPAth document.body.appendChild(new_element1);//添加到body节点的末尾 new_element1.onload = fun }...
来源: Laya_社区 发布时间: 20180608