大约有 914 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
Laya_社区(546) Laya2.0_示例(94) Laya_示例(90) Laya2.0_文档(79) Laya3.0_api(62) Laya3.0_文档(41) laya_api(1) Laya2.0_api(1)
....stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 发布成单机版apk在移动端安装运行,移动端报错提示: http://www.xxx.com/LayaUISampl ... annot read property 'start' of null ...
来源: Laya_社区 发布时间: 20170522
TiledMap中的gridWidth|(块的宽度)是哪一部分啊? 我创建的TiledMap是如下图5*5,每个格子是48*48,我输出gridWidth=432.请问432是怎么出来了,为什么是432啊。这个不太明白。 附件 : --> 2016-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20160717
... var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId=...
来源: Laya_社区 发布时间: 20170519
...; let canvas: HTMLCanvasElement = document.createElement("canvas"); canvas.width = 1024; canvas.height = 1024; let context: CanvasRenderingContext2D = canvas.getContext("2d"); context.putImageData(imageData, 1024, 1024); let img: HTMLImageElement = new Image(); img.src = canvas.toDataURL("image/png"...
来源: Laya_社区 发布时间: 20180117
...按钮点击后多次触发点击事件 if (window["Laya3D"]) Laya3D.init(width,heigh) 调用失败,引起底层问题 Laya.init()后,是否还能再次改变stage的宽高 Starling屏幕适配问题 在没有碰撞条件情况下,为何会撞歪物体,导致旋转角度改变? (附源码Laya+Unit...
来源: Laya_社区 发布时间: 20221206
...ledMap(); tiledMap.createMap("map/map.json",new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成.."); } 2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170918
...Prior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOpt...
来源: Laya3.0_api 发布时间: 20231115
..."; txt.text = "历史最高分:123456789"; Laya.stage.addChild(txt); txt.width = 100; txt.height = 100; txt.zOrder = 1000; } 但是if里面的不会执行,提示Laya.Browser.window.conch未定义 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...
来源: Laya_社区 发布时间: 20180718
...",0,0,0,0,Handler.create(this,aa)); function aa(texture){ bg.pivot(texture.width,texture.height); bg.alpha = 1; bg.rotation = 10; } 2018-05-19 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 智力猫 相关问...
来源: Laya_社区 发布时间: 20180519
第二次截屏不完整的问题 this.ui.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas().toDataURL() 第一次截图正常, 第二次截图就只有左下角一小块 同一个界面反复界面反复截图是没问题,界面重新创建之后就有问题了 附件 : --> 20...
来源: Laya_社区 发布时间: 20180803