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

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

341. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 74%]

...; } } miniMap.src=url;     function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circle; if (img.width > img.height) { width = img.height; height = img.height; } else { width = img.width; height = img.width; } canvas = document.createElement('canvas'); if (!...

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

342. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 74%]

...取动画所在的矩阵,然后设置skeleton的 hitArea为(-width, -height, width, height). 但是只有点击动画的右下角才能拖拽。期望:   龙骨动画的任意位置都可以拖拽。 附件一是 设置点击区域的部分代码; 附件二是 渲染出来的效果,目...

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

343. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 74%]

...tage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton);  //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createButton("播放音乐"); musicButton.x = soundButton.x + gap + soundButton...

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

344. laya.ui.HBox [ 74%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

来源: Laya2.0_api 发布时间: 20190513

345. swf转成H5资源显示超出原有范围 [ 74%]

...ow.innerWidth;' );             __JS__( 'stageH = Laya.window.innerHeight;' );             (stageW > 0) && IFlash.setSize(stageW, stageH);         }         private function init(e:Event = null):void         {             removeEventListener(Eve...

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

346. laya.ui.Panel [ 74%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  elasticEnabled ...

来源: Laya2.0_api 发布时间: 20190513

347. hitTestPrior点击穿透 [ 74%]

...[`hitTestPrior`] = () => { let box1 = new Laya.Box(); box1.width = box1.height = 500; let sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, box1.width, box1.height, `#999900`); box1.addChild(sp); box1.clickHandle = () => { lizheng.log(`点击了box1`); } box1.hitTestPrior = false; Laya.stage....

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

348. Laya.stage报null [ 74%]

...ter.init(); //初始化引擎 Laya3D.init(Laya.Browser.width, Laya.Browser.height, true);   在代码中初始化引擎报的 Laya.stage为null,版本用的1.8.3 附件 : --> 2020-02-02 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

349. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 74%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); f...

来源: Laya2.0_文档 发布时间: 20210714

350. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 74%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#ffffff"; this.showApe(); } private showApe(): void { // 方法1:使用...

来源: Laya2.0_文档 发布时间: 20210715