大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0061 秒)
...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } new GameMain(); 海货 • 2018-07-15 16:17 上边是代码 wq • 2018-08-01 14:00 那不是很麻烦,要全部注释忘。 nonfiction • 2018-09-04 11:33 1.7.19,新建示例项目,发布到微信...
来源: Laya_社区 发布时间: 20180715
...NE 微信 颜颜粑粑 赞同来自: var particleSprite3D:Sprite3D = scene.addChild(Sprite3D.load("...")) as Sprite3D; particleSprite3D.transform.position = new Laya.Vector3(100,0,0); 这样写 无法移动例子效果? 2018-05-09 0 6 分享 微博 QZONE 微信 绝地求生 赞同来自: unity5...
来源: Laya_社区 发布时间: 20161219
...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } this.owner.addChild(label); return label; } } 效果预览: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:03 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20240910
...aya.CheckBox { let cb: Laya.CheckBox = new Laya.CheckBox(skin); this.owner.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: Laya.CheckBox): void { checkBox.label = checkBox.selected ? ...
来源: Laya3.0_文档 发布时间: 20240910
...CLICK,this,readnext); //添加到舞台 Laya.stage.addChild(this.bgimg); } function onLoading(progress) { console.log("加载进度: " + Math.floor(progress*100)+"%"); } function onError(err) { co...
来源: Laya_社区 发布时间: 20171024
...('scene/Game.ls', Laya.Handler.create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya.loader的方式加载,加载后根节点是Scene2D Laya.loader.load('scene/Game.ls', Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)).then( (res)=>{ let s...
来源: Laya3.0_文档 发布时间: 20240910
...ont; txt.leading = 15; //把文本添加到场景中的bf节点下 this.bf.addChild(txt); } } ``` 上面的代码运行效果如下图的蓝色框内所示:  > 上图非蓝色框的是FontClip组件的效果,如果只是简单的单行位图文本,FontClip也可以满足,...
来源: Laya2.0_文档 发布时间: 20210715
...vent.CLICK,this,function() { alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回...
来源: Laya_社区 发布时间: 20180722
...{ var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create({ enableSleeping: true }); Matter.Engine.run(engine); ...
来源: Laya_社区 发布时间: 20180323
...oad('res/spine/princess1.sk', new Laya.Handler(this, () => { Laya.stage.addChild(spine); spine.play(0, true); })); index.html <html> <head> <meta charset='utf-8' /> <title>XXXXX</title> <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-...
来源: Laya_社区 发布时间: 20181120