大约有 1,037 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya_社区(608) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...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
...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
...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
...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
...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
...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
...70731 相关问题 关于shader中opengl函数问题 Text类中竟然没有pos函数的api~ 2.0 drawTexture color参数无效 怎样获取浏览器地址传过来的GET参数 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 执行回调函数时报is not a f...
来源: Laya_社区 发布时间: 20170203
...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
...有比较大的空白区域, 直接使用size方式设置大小,再用pos会位置不正确,特别是大图片缩小后。 使用scale方式就可以。 用size方式后,pos设置要减少偏移值, -offsetX 后, 位置才会正确。 2019-11-27 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20191127
... sp.loadImage('./../img/psh_freq.png'); sp.pos(500, 400); sp.on("mousedown", this, callback); Laya.stage.addChild(sp); console.l...
来源: Laya_社区 发布时间: 20161128