大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0278 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...ge.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(te...
来源: Laya_示例 发布时间: 20260303
...e.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, this.onTextureLoaded)); } onTextureLoaded() { maggotTexture = Laya.loader....
来源: Laya2.0_示例 发布时间: 20260303
...碰撞的问题 请问这个是什么原因 this.camera = scene.addChild(new Laya.Camera(0, 0.3, 100)) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 25, 16)); this.camera.transform.rotate(new Laya.Vector3(-56, 0, 0), true, false); 2018-10-15 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181015
...交 1 个回复 Laya_Aaron 赞同来自: 有, 就用for循环。 按钮 new 出来的时候 push 到数组里,然后 for 循环数组里的元素,加on 监听。 2018-08-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 waikou 相...
来源: Laya_社区 发布时间: 20180817
... private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selec...
来源: Laya_示例 发布时间: 20260303
... private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selec...
来源: Laya2.0_示例 发布时间: 20260303
...ata && data.items != []) { let tempSpr: Sprite = new Sprite(); let tempImg: Laya.Image; let arr: Array<object> = <Array<object>>data.items; let element: any; let maxY: number = 0 | 0; ...
来源: Laya_社区 发布时间: 20170508
... "#232628"; createMovieClip(); })(); function createMovieClip() { var mc = new MovieClip(); mc.load(SWFPath); mc.x = (Laya.stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCHeight) / 2; Laya.stage.addChild(mc); } })();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage...
来源: Laya_示例 发布时间: 20260303
... 0, 0, 0, 1, 0, //A ]; var blackTextfilter = new Laya.ColorFilter(blackColorMat); if(blackTextfilter){ this.textField.filters = [blackTextfilter]; } 我通过以上的方式创建一个颜色滤镜;但是blackTextfilter这个new之后返回的是undefined...
来源: Laya_社区 发布时间: 20190822
...age.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } new laya.HelloLayabox(); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示...
来源: Laya2.0_文档 发布时间: 20210715