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

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

1271. spine 播放错乱 [ 53%]

...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { con...

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

1272. 如何改变text部分字的颜色或两个不同颜色的text如何拼接看起来像一个文本? [ 53%]

...t;/span><span color="#FFFF00">嘻嘻嘻</span>'; Laya.stage.addChild(htmlDiv); 2017-05-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 daohu 相关问题 两个对象new了一个相同的对象,调用第一个的一个...

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

1273. 排行榜上的玩家头像绘制问题 [ 53%]

...st = new FriendRankListView(); // friendRankList.visible =false Laya.stage.addChild(friendRankList); var dataT = []; data.forEach((item, index) => { // console.log(item) var cupImg = index < 3 ? "images/prize"+(index+1)+".png" : "" var rankTxt = index < 3 ? &qu...

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

1274. 新手,从unity导出地形的问题 [ 53%]

....Scene.load("res/scene/LayaScene_cz1/cz1.ls");          Laya.stage.addChild(scene);     } } new LayaAir3D();   2017-12-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 liuzhengcai 相关问题 发起问题须知,必看!...

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

1275. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 53%]

...e.texture.sourceHeight = Laya.stage.height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无...

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

1276. 如何获取unity导出的摄像机 [ 53%]

...reateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.getChildByName("Camera"); camera.addComponent(CMS);//控制脚本 console.log(camera); }         2019-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

1277. 请教一个图片处理成黑白的问题 [ 53%]

... new Sprite(); grayApe.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(grayApe); grayApe.filters = [grayscaleFilter];如果一批图片 只要是 grayApe  Sprite  的 子对象 这样都可以的!   2017-06-15 0 1 分享 微博 QZONE 微信 devilsome 赞同来自: 如果sprite下...

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

1278. 局部坐标转全局坐标结果与预期相差甚远 [ 53%]

...了 2018-12-19 0 4 分享 微博 QZONE 微信 LT 赞同来自: Laya.stage.addChild(this); Laya.timer.once(500,this,test); 转坐标放在后面加了个延时执行。。就没问题了。。应该是执行的时候组件还没有全部加进stage。。 2018-12-20 0 0 分享 微博 QZONE 微信 为...

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

1279. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 53%]

...keleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void { if (+...

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

1280. 通过Spine工具导出缩小了比例,游戏中显示部分节点坐标和比例出错 [ 53%]

...pSpine.x = 365;         tmpSpine.y = 500;         Laya.stage.addChild(tmpSpine); 附件 : --> 6402.zip 2020-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 layabox 赞同来自: BUG已验证,...

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