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

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

881. Laya官方的视频例子,用LayaAir2.1.1.1版本开发,在ios无论是safari还是通过微信打开的h5链接都无法播放 [ 49%]

...MElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); 3) 而你的代码里并不会执行这一行,你完全拷贝示例代码,会发现是能够播放的。差别就在于是否设置了video元素的style   2020-07-11 0 0 分享 微博 QZONE 微信 为什么被...

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

882. 某些机型drawToCanv绘图颜色变深 [ 48%]

...der', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribute('align', "middle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style', "z-index:100001;position: absolute; lef...

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

883. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found [ 47%]

...module 'tslib' cannot be found   定位到代码中是: let { width, height } = Laya.stage;  mac上却没有问题,win10上却出问题了,求解?难道只支持ts2.x?不支持解析赋值语法? 附件 : --> 2020-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

884. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 47%]

...使用时需要多大的字就在此处设置相同大小的字号。 ​ Height:设置字体的拉伸高度,保持默认的100%就可以。 ​ * 注意:Charset的值选择Unicode。* ​ ![图片1.png](http://ldc.layabox.com/uploadfile/image/20160518/1463538956945255.png) ​ 5.在选择菜...

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

885. 请问object层中添加的sprite怎么添加点击事件 [ 46%]

... flower.pivotY=80; flower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld...

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

886. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 46%]

...e; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口,请参考: https...

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

887. List滚动条问题 [ 45%]

...g; this._goldImage.pos((312-this._goldImage.width)/2, (462-this._goldImage.height)/2); }; this.setPrice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender =...

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

888. 分享一个Shader版的CoolDown实现 [ 44%]

...    var texWidth: number = texture.width;                 var texHeight: number = texture.height;                 //定义颜色值,取值范围0~1 浮点。                 const red: number = 1;                 const greed: number = 1;                 co...

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

889. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 44%]

...iewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠标点击屏幕时,会发射一...

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

890. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 44%]

...exture2, 0, 0); //把草垛居底部显示 // this.grass.y = Browser.clientHeight - this.grass.height; this.addChild(this.grass); //创建一个帧循环处理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, this.onLoop) } _proto.onLoop = function(){ /...

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