• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 404 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)

321. 怎么才能像HTML5中那样直接操作Canvas [ 52%]

...sform: matrix(1, 0, 0, 1, 0, 0);"></canvas> var canvas:any = document.getElementById("layaCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "red"; ctx.fillRect(120, 10, 150, 150); console.log("draw complete"); 换成你说的canvas还...

来源: Laya_社区 发布时间: 20170502

322. TypeError: ele.render is not a function [ 52%]

...Cannot read property 'load' of null 用微信开发者调试的时候出现document.createTextNode is not a function at api readFile fail callback function LayaAir新建3D示例项目,在as开发模式下,运行报错 TypeError: Vector3 is not a constructor ide导出ui时,UI代码显示不正...

来源: Laya_社区 发布时间: 20180117

323. 2.2.0beta2发布vivo小游戏报错:Can not find scene:main/MainScene.scene [ 52%]

...igame/libs/laya.core.js:0:0   报错信息截图: file:///C:/Users/user/Documents/Tencent%20Files/2895680850/Image/C2C/QNI%7D53)930_%7D85BZ[VA1%25~V.png 这个问题困扰了我一天,在vivo小游戏中加载不出来主场景。已经按照社区提示修改为分离模式,并更新到最...

来源: Laya_社区 发布时间: 20191025

324. 怎样获取浏览器地址传过来的GET参数 [ 52%]

...来用private function getGet():Object { var url:String = __JS__('window.document.location.href.toString()'); var u:* = url.split("?"); if (u[1] is String) { u = u[1].split("&"); var gets:Object = {}; for (var i:String in u) { var j:String = u[i].split("="); gets[j[0]] = j[1]; } return gets; } r...

来源: Laya_社区 发布时间: 20160110

325. args.slice is not a function [ 52%]

...场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function undefined 打包小游戏后在开发者工具中报错 CharRender_Canvas.ctx.fillAndStrokeText is not a function Uncaught TypeError: tex.once is...

来源: Laya_社区 发布时间: 20151202

326. LayaAir写了一个页面,怎么在Android studio 中引入 [ 52%]

...面声明的Java的类名匹配. var a=false; // 注册手指按下事件 document.addEventListener("touchstart",function(e){ a=!a;// 实现奇数次打开 偶数次关闭 // b、调用静态函数openlight 参数为a Test.call("openlight",a); }); 2017-12-25 0 0 分享 微博 QZONE 微信 为什么...

来源: Laya_社区 发布时间: 20171224

327. 调用JSMpeg会闪屏 [ 52%]

...竖屏 Laya.stage.screenMode = Stage.SCREEN_VERTICAL; __JS__('var canvas = document.getElementById("layaCanvas")'); __JS__('var url = "ws://xxx.xxx.xx.xx:xxxx"'); __JS__('var player = new JSMpeg.Player(url, {canvas: canvas})');  WebGL下一直闪屏,不使用WebGL没有任何显示画面 附件 :...

来源: Laya_社区 发布时间: 20171115

328. [LayaAir3]laya3.3正式版废弃了_cacheStyle,fgui还有用到他咋办 [ 51%]

...DEMO as3中,调用原生js的的时候,如何传递原生JS要用到的document.getElementById的ID过去? index.html没引用到的lib文件夹下的js可以全部删除吗? 3D模型贴图动作加载后,不使用了内存怎么释放?需要用到ResourceManager吗?有没有例子? ...

来源: Laya_社区 发布时间: 20250730

329. android studio 不支持标签 <Script Language="JavaScript"> [ 51%]

...ipt Language="JavaScript"&gt; &lt;Script Language="JavaScript"&gt;     document.getElementById('WebViewport').setAttribute('content', 'width=100%,initial-scale=' + 1 / devicePixelRatio + ',target-densitydpi=device-dpi,minimum-scale=0.1,maximum-scale=9,user-scalable=0'); &lt;/script&gt;    inde...

来源: Laya_社区 发布时间: 20180201

330. args.slice is not a function [ 51%]

...场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function undefined 打包小游戏后在开发者工具中报错 CharRender_Canvas.ctx.fillAndStrokeText is not a function Uncaught TypeError: tex.once is...

来源: Laya_社区 发布时间: 20151204