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

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

91. List滚动条问题 [ 74%]

...wnd/market_item_bg.png"; bg_image.pos(0, 0); bg_image.size(312, 462); this.addChild(bg_image); // 金豆数 this._goldLabel = new Laya.Label(); this._goldLabel.color = "#FFBA00"; var font = GameUI.GetFont("$font.marketdlg.default"); this._goldLabel.font = font.family; this._goldLabel.bold = (parseIn...

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

92. Image.loadImage 方法加载问题 [ 73%]

...ya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPublicSpacesData (_publicSpacesInfo:any) : void ///调用这个方 传入参数 里面有每一个图片的名字 {  this.publicSpacesInfo = _publicSpacesInfo;  this.publicSpaceLi...

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

93. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 73%]

...两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();...

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

94. 圆环不跟随 sprite 一起缩放? [ 73%]

...this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(this._rootSp); }  private MouseWheel(e: Laya.Event) { let xs = this.firstSp.scaleX; if (e.delta > 0) { xs = xs * 1.2; } else { xs /= 1.2; } this.firstSp.scale(xs, xs); } } new G...

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

95. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 71%]

...teItem); //为列表赋值 list.array = data; //加载到舞台 Laya.stage.addChild(list); } /***渲染单元格时的回调方法***/ private function updateItem(cell:Item, index:int):void { //用获得的数据给图片更换皮肤 cell.img.skin=cell.dataSource; } /***选择单元格回调***/ pri...

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

96. bug,ChainCollider.points第二次设置,会报错! [ 71%]

...is.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="35,35,80,80";     //****新增代码*****,需增加private _chain; } /**开始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { this._start...

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

97. 图片不能按轴心旋转 [ 70%]

... new Laya.Box() bgWrapper.zOrder = 0 let bg = new Laya.Sprite(); bgWrapper.addChild(bg) Laya.stage.addChild(bgWrapper) bgWrapper.x = 375 bgWrapper.y = 667 bg.loadImage("../res/image/interface/intro_bg.png",0,0,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 20 2018-05-19 1 0 分享 微博 Q...

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

98. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...annon.js** - 1.创建盒型MeshSprite3D ```typescript var box = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))); ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞器形状 ```typescript //...

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

99. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 70%]

...Data.getInstance().openId }); this.rank = new Laya.Sprite(); this.box_rank.addChild(this.rank); Laya.Browser.window.sharedCanvas.width = this.box_rank.width; Laya.Browser.window.sharedCanvas.height = this.box_rank.height; //alwaysChange = true不好用了 手动刷新 Laya.timer.loop(50, this, () =&...

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

100. 创建材质(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 70%]

...赋给了模型。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.pn...

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