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

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

341. 官方新手游戏引导示例中关于hit和unHit的使用疑问 [ 74%]

...a = new HitArea(); hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.hitArea = hitArea; guideContainer.mouseEnabled = true; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000");我的理解是给父容器guideContainer(包...

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

342. 请问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

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

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

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

344. 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

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.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

347. 版本号: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

348. 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

349. laya.ui.Tree [ 74%]

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

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

350. 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