大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...临时sprite的htmlCanvas var htmlCanvas = img.drawToCanvas(tex.width,tex.height,0,0); //获取临时sprite的 原生Canvas var c = htmlCanvas.getCanvas(); var ctx = c.getContext("2d"); //获取canvas的imgData var imgData = ctx.getImageData(0,0,ctx.canvas.width,ctx.canvas.height); //将图片的数...
来源: Laya_社区 发布时间: 20180413
...); this.mapBg.name = "map"; this.mapBg.width = GameMain._width; this.mapBg.height = GameMain._height; this.mapBg.x = 0; this.mapBg.y = 0; this.mapBg.graphics.fillTexture(texture, 0, 0, GameMain._width, GameMain._height); this.map.addChild(this.mapBg); 问题已经解决:当被填充的图片...
来源: Laya_社区 发布时间: 20170903
...nal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } })();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { private tiledMap: TiledMap; ...
来源: Laya_示例 发布时间: 20251209
...tentText.fontSize = fontSize+2; contentText.valign = 'middle'; contentText.height = 0; contentText.wordWrap = true; contentText.width = parseInt(trueWidth*0.9); contentBox.width = parseInt(trueWidth*0.9); contentBox.height = contentText.height+20; 附件 : --> 2018-03-02 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20180302
...kList.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height); 2018-10-02 0 10 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 淡淡的疯 相关问题 微信关系链:LayaAir引擎针对微...
来源: Laya_社区 发布时间: 20181001
...est-movelayer.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_AnimationTile();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { pr...
来源: Laya2.0_示例 发布时间: 20251209
...ay/cmd/DrawTrianglesCmd.ts:13 Methods getBoundPoints getBoundPoints(sp?: { height?: number; width: number }): number[] Defined in laya/display/cmd/DrawTrianglesCmd.ts:96 Parameters Optional sp: { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover...
来源: Laya3.0_api 发布时间: 20231115
...m y 开始绘制的 Y 轴位置。 * @param width 矩形宽度。 * @param height 矩形高度。 * @param fillColor 填充颜色,或者填充绘图的渐变对象。 * @param lineColor (可选)边框颜色,或者填充绘图的渐变对象。 * @param lineWidth (可选)边框宽度。 *...
来源: Laya3.0_文档 发布时间: 20251010
...res/layabox.png"); img2.x=(Laya.stage.width-256)/2+100; img2.y=(Laya.stage.height-256)/2-50; //添加到舞台 Laya.stage.addChild(img2); sp=img2; img2.addComponent(BoxCollider); (img2.getComponent(BoxCollider) as BoxCollider).width=256; (img2.getComponent(BoxCollider) as BoxCollider).height=256; im...
来源: Laya_社区 发布时间: 20200217
...计宽度,宽度根据屏幕比率大小而变化*/ static SCALE_FIXED_HEIGHT: string; /**应用保持设计比例不变,全屏显示全部内容(类似showall,但showall非全屏,会有黑边),根据屏幕长宽比,自动选择使用SCALE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ static SCALE_...
来源: Laya_社区 发布时间: 20180825