大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0156 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...oader.load("resources/spritelight.png", Laya.Loader.IMAGE).then(() => { this.setSpriteLight(); this.setDirectLight(); this.setBackground(); }); } // 配置精灵灯光 setSpriteLight(): void { this.spriteLight.pos(100,350); let spritelightComponent = this.spriteLight.getComponent(Laya.SpriteLight...
来源: Laya3.0_文档 发布时间: 20251010
...哪里 2018-03-21 0 0 分享 微博 QZONE 微信 andyskaura 赞同来自: this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender,null,false); 你试一下在回调otherItem_listRender(){ .skin="" } 里面直接给skin赋值,我平常都是这样用的。 2018-03-21 0 ...
来源: Laya_社区 发布时间: 20180321
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF"...
来源: Laya_示例 发布时间: 20260303
...Laya3.0.3 的VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 le...
来源: Laya_社区 发布时间: 20230825
2.0 的list问题 /** 初始化坑位 */ private initCellList(): void { this.cellList.itemRender = CellItem; this.cellList.vScrollBarSkin = ""; this.cellList.repeatX = BattleMgr.Ins.Model.crosCel; this.cellList.repeatY = BattleMgr.Ins.Model.maxCell / BattleMgr.Ins.Model.crosCel; this.cellList.array...
来源: Laya_社区 发布时间: 20181221
...会抖动 官网案例运动起来也会抖动。 部分代码: this.characterController = this._tempVirtualMoveGo.addComponent(Laya.CharacterController); let sphereShape = new Laya.CapsuleColliderShape(0.5, 1); sphereShape.localOffset = new Laya.Vector3(0, 0.3, 0); this.characterControll...
来源: Laya_社区 发布时间: 20190626
...unction(force){ var _channel; for (var len=this._soundChannelArr.length,i=0;i < len;i++){ _channel=this._soundChannelArr; if (_channel.isStopped || force){ !_channel.isStopped &&...
来源: Laya_社区 发布时间: 20190827
...0% 打印了下,loadingView.prototype.loading = function (value) { if (this.bridge) { if (this.sOS == "Conch-ios") { this.bridge.call("loading:", value); } else if (this.sOS == "Conch-android") { this.bridge.call("loading", value); } console.log("loadingView.prototype.loading=" + value); } }; ...
来源: Laya_社区 发布时间: 20190724
...Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); //this.text = new Laya.Label(); this.addChild(this.img); //this.addChild(this.text); } public setImg(src: string): vo...
来源: Laya_社区 发布时间: 20180507
...leFilter:ColorFilter = new ColorFilter(grayscaleMat); this.filters = [grayscaleFilter]; 2、按键松开时,清除这个颜色变化, this.filters = null; 按键的位置莫名其妙的移到屏幕正中间?这个怎么解决?谢谢! 2017-05-26 添加评...
来源: Laya_社区 发布时间: 20170526