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

大约有 573 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)

381. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 55%]

..., this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.stage.height; //主域往子域透传消息 __JS__('wx').postMessage({type:"resizeShared",url:"",data:{width:Laya.stage.width,height:Laya.stage.height,matrix:Laya...

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

382. Templet资源删除不掉 [ 54%]

...    Laya.stage.addChild(swordman);              swordman.pos(width / 2,  height / 2);             Laya.timer.frameOnce(100, this, unload);         }         private function unload() : void         {             swordman.destroy();           ...

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

383. 如何使用graphics绘画虚线 [ 54%]

...ot; +"<g fill=\"none\" stroke=\"black\" stroke-width=\"4\">" + " <path stroke-dasharray=\"5,5\" d=\"M5 20 l215 0\" />" + "<path stroke-dasharray=\"10,10\" d=\"M5 40 l215 0\" />" + &q...

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

384. bitmap渲染问题 [ 54%]

... bm2:Bitmap = new Bitmap(bmd2); this.addChild(bm2); bm2.x = 50; trace(rect.width); trace(rect.height); 输出正常,不知道你那边是如何写的?

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

385. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 53%]

...dler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域     ...

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

386. Laya.Sprite loadImage 参数问题 [ 53%]

...dimage的描述是:   loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报错。IDE F6 运行也编...

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

387. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 53%]

... list.itemRender = Item; list.x = 15; list.y = 60; list.height = 470; list.width = 542; list.spaceY = 20; list.vScrollBarSkin = ""; list.repeatX = 1; list.repeatY = 10; list.selectEnable = false; list.renderHandler = new Handler(this, function(cell, index) { cell.setImg(cell.dataSource); }); this.ro...

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

388. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 53%]

...寸的百分比,当不勾选时,矩形的尺寸为像素大小。 Line Width:绘制矩形的边框宽度值。 Line Color:绘制矩形的边框颜色。 Fill Color:矩形填充的颜色。 动图2-2演示了这些属性的操作过程: (动图2-2) 2.2 代码绘制矩形 LayaAir引擎...

来源: Laya3.0_文档 发布时间: 20231129

389. 两个物体发生碰撞的时候,如何让他检测碰撞点的位置 [ 53%]

...:     let point = {          x: collider.owner.x - collider.width * 0.5 * local.x,         y: collider.owner.y - collider.height * 0.5 * local.y     } 2021-01-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 176**...

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

390. laya.utils.Browser_API3.0 [ 52%]

...Storage supportWebAudio userAgent Accessors _isMiniGame clientHeight clientWidth container document height pixelRatio width window Methods createElement getElementById getQueryString now removeElement Properties Static PLATFORM_ANDROID PLATFORM_ANDROID: number = 1 Defined in laya/utils/Browser.ts:71...

来源: Laya3.0_api 发布时间: 20231115