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

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

121. UI-TextArea [ 75%]

...font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; import TextArea = Laya.TextArea; import Browser = Laya.Browser; import Handler ...

来源: Laya2.0_示例 发布时间: 20251130

122. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 75%]

...w Laya.CompoundColliderShape();             this.cube.transform.localPosition = new Laya.Vector3();         }         let pos = this.cubeP.transform.position;         pos.z += dis;         this.cubeP.transform.position = pos;         if(this.cube.transform.localPosition.z !...

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

123. UI-ColorPicker [ 75%]

...olorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Handler(this, this.onChangeColor, [colorPicker]); Laya.stage.addChild(colorPicker); this.onChangeColor(colorPicker); } onChangeColor(colorPicker) { console.log(colorPicker.select...

来源: Laya2.0_示例 发布时间: 20251130

124. Sprite-显示图片 [ 74%]

...Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export cla...

来源: Laya_示例 发布时间: 20251130

125. 动画-图集动画 [ 74%]

...ni.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); } } new Animation_Altas();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; import Br...

来源: Laya2.0_示例 发布时间: 20251130

126. 动画-图集动画 [ 74%]

...ni.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } })();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; im...

来源: Laya_示例 发布时间: 20251130

127. Laya.SoundManager.playSound函数参数意义 [ 74%]

...70731 相关问题 关于shader中opengl函数问题 Text类中竟然没有pos函数的api~ 2.0 drawTexture color参数无效 怎样获取浏览器地址传过来的GET参数 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 执行回调函数时报is not a f...

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

128. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 74%]

...his.setup)); } private setup(): void { this.ape=this.createApe(); this.ape.pos(100,50); this.apeGlow = this.createApe(); this.apeGlow.pos(250,50); this.apeShadow = this.createApe(); this.apeShadow.pos(400,50); this.GlowFilter(); this.ShadowFilter(); } private createApe(): Sprite { var ape = new Spri...

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

129. 勾选裁剪空白区域,设置大小后位置错位 [ 74%]

...有比较大的空白区域, 直接使用size方式设置大小,再用pos会位置不正确,特别是大图片缩小后。 使用scale方式就可以。 用size方式后,pos设置要减少偏移值, -offsetX 后, 位置才会正确。 2019-11-27 添加评论 免费帖 --> 分享 微博 Q...

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

130. 事件绑定不触发bug [ 74%]

...        sp.loadImage('./../img/psh_freq.png');              sp.pos(500, 400);                           sp.on("mousedown", this, callback);                           Laya.stage.addChild(sp);                                        console.l...

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