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

大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0061 秒)

1291. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 42%]

...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

1292. LayaAir3D 导出和使用U3D粒子特效 [ 42%]

...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

1293. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

1294. 多选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

1295. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 41%]

...CLICK,this,readnext);         //添加到舞台     Laya.stage.addChild(this.bgimg);     }     function onLoading(progress)     {         console.log("加载进度: " + Math.floor(progress*100)+"%");     }     function onError(err)     {         co...

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

1296. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...('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

1297. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 41%]

...ont; txt.leading = 15; //把文本添加到场景中的bf节点下 this.bf.addChild(txt); } } ``` 上面的代码运行效果如下图的蓝色框内所示: ![img](img/20.png) > 上图非蓝色框的是FontClip组件的效果,如果只是简单的单行位图文本,FontClip也可以满足,...

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

1298. 请问object层中添加的sprite怎么添加点击事件 [ 41%]

...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

1299. 物理引擎显示旋转问题 [ 41%]

...{         var gameWorld = new Sprite();         Laya.stage.addChild(gameWorld);         // 初始化物理引擎         engine = Matter.Engine.create({             enableSleeping: true         });         Matter.Engine.run(engine);    ...

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

1300. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 41%]

...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