大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(720) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(43) Laya2.0_示例(32) Laya_示例(32) Laya3.0_文档(11)
...程出现图片资源丢失 LayaAir的UI编辑器中添加一个2D对象或Graphics对象,发布为flash版本后,运行swf会报错; 问题状态 最新活动: 2019-07-17 15:23 浏览: 2791 关注: 2 人 Laya_Aaron • 2019-07-17 15:23 没有demo没法查,只能靠猜测,根据报错信息...
来源: Laya_社区 发布时间: 20190716
... new Laya.Texture(sharedCanvas) myTexture.bitmap.alwaysChange = true; this.graphics.drawTexture(myTexture, x, y, width, height) 目前遇到的问题: 主域里面的texture获取在获取sharedCanvas里的图案的时候,没有将texture自身的内容清空,导致绘制到主界面上的...
来源: Laya_社区 发布时间: 20180419
...指点3d射线碰撞和UI点击穿透的问题 IDE创建的UI 层级问题 graphics alpha 问题 Panel中的东西左右拖动好象有问题 laya1.7.9beta版 问题状态 最新活动: 2025-03-28 16:31 浏览: 11133 关注: 3 人 LayaAir大为 • 2025-01-24 16:21 好的,我们已复现这个问...
来源: Laya_社区 发布时间: 20250124
...this,this.drawHandler); } private function drawHandler():void { Laya.stage.graphics.clear(); var dataArray:Uint8Array = new Uint8Array(analyser.frequencyBinCount); analyser.getByteFrequencyData(dataArray); var step:int = Math.round(dataArray.length / 60); for (var i:int = 0; i < 40; i++) { var energ...
来源: Laya2.0_文档 发布时间: 20210715
...xture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ...
来源: Laya_社区 发布时间: 20170329
...这段代码有什么问题? let s: Laya.Sprite = new Laya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box...
来源: Laya_社区 发布时间: 20180720
...ference.size(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Event.RESIZE, t...
来源: Laya_社区 发布时间: 20180313
...的测试了一下,大概能了解IDE动画机制了,目前是使用的graphics直接进行绘制完成的动画,所以也不可能插入元件了。也想问下你这里后续是否会考虑加入使用元件来作为动画部件的模式,像Unity那样,可以有更多的发挥空间,...
来源: Laya_社区 发布时间: 20170413
... TypeError: Class constructor Sprite cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function Cannot read property 'events' of undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor Uncaught TypeErro...
来源: Laya_社区 发布时间: 20190418
...百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在...
来源: Laya_社区 发布时间: 20190629