大约有 2,110 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
...哪里 2,二,我们引入的第三方库文件放哪里 是这里吗<!--jsfile--Custom--> 3,三,我们自己写的代码,还需要手动放到<!--jsfile--startTag-->吗 4,四,如何使用第三方库的内容,为什么没有提示。。请举个例子和代码 2018-02-05 ...
来源: Laya_社区 发布时间: 20180205
...kTest end move reset Constructors constructor new TouchInfo(touches: Array<TouchInfo>): TouchInfo Defined in laya/events/InputManager.ts:597 Parameters touches: Array<TouchInfo> Returns TouchInfo Properties began began: boolean Defined in laya/events/InputManager.ts:590 clickCancelled cl...
来源: Laya3.0_api 发布时间: 20231115
....style.fontSize = 30; html.style.whiteSpace = "nowrap"; html.innerHTML = '<span style="color:#ffffff">test</span>'; html.pos(500, 300); html.size(html.contextWidth, html.contextHeight); Laya.stage.addChild(html); setTimeout(function() { html.innerHTML = ''; }, 300);此问题是由于在...
来源: Laya_社区 发布时间: 20170620
...的模块化方式不一样导致。网页版的话,在index.html加入 <script type="text/javascript" src="libs/puremvc.js"></script> 其他版本的,在game.js加入 window.puremvc=require("libs/puremvc.js"); 注意,要在引入index.js之前。 2019-05-05 0 0 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20190426
...用编辑工具打开html文件 类似 找到meta标签viewport: <meta name='viewport' content='width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no' /> 第二步、使用 <meta name="viewport" content="user-scalable=no,target-densitydpi=device-dpi"...
来源: Laya_社区 发布时间: 20151223
...te point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>; private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Sta...
来源: Laya_社区 发布时间: 20180820
...效果 var a:Sprite = new Sprite(); var count:int = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTex...
来源: Laya_社区 发布时间: 20181113
...效果 var a:Sprite = new Sprite(); var count:int = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTex...
来源: Laya_社区 发布时间: 20181113
...yntaxError: Unexpected token in JSON at position 266 at JSON.parse (<anonymous>) at Function.MiniAdpter.getJson (http://127.0.0.1:31158/game/code.js:21236:15) at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:31158/game/code.js:22404:25) at Handler.__proto.r...
来源: Laya_社区 发布时间: 20190422
...xt(); ctx.fillStyle = "red"; ctx.fillRect(120, 10, 150, 150,"red"); ctx.fillText("texttt",100,100,"","#ffffff","center"); console.log("draw complete"); 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cui...
来源: Laya_社区 发布时间: 20170502