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

大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0075 秒)

1711. 求问sprite放大后,graphics绘制的图像位置偏移 [ 52%]

...#fff333"); //位置正确 sprite.scale(scaleRatio, scaleRatio); Laya.stage.addChild(sprite); console.log(sprite.width); console.log(sprite.height); 比如我在一个sprite的中心画一个圆,用scale放大后,圆偏离中心。 必须在原位置减去位置除以缩放比才能达到想要...

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

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

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

1713. 如何从代码中创建UI,progressbar [ 52%]

.../anniu05a.png" progressBar.pos(100,100); progressBar.value=0.5; Laya.stage.addChild(progressBar); 后台: Failed to load resource: net::ERR_FILE_NOT_FOUND(FILE///..../bin/commonUI/anniu05a$bar.png) [warn]Retry to load:/......./bin/commonUI/anniu05a$bar.png 但能显示出来, 2.skin这个属性...

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

1714. Uncaught unknown animationClip version. [ 52%]

....create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene);         }));   加载代码 2019-03-13 0 0 分享 微博 QZONE 微信 Zong 赞同来自: 断点调试显示clip.version = "LAYAANIMATION:04" 2019-03-14 0 0 分享 微博 QZONE 微信 Zong 赞同来...

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

1715. 动态加载的 animation第二次加载的时候不显示 [ 52%]

...60+(i-1)*120; item.y=y; item.size(80,80); item.name=aniname; this.doworkui.addChild(item);   2017-11-06 0 0 分享 微博 QZONE 微信 ysshao 赞同来自: 实际上这些animation是存在的,我可以通过play播放的,但是就是看不叫! 2017-11-06 0 0 分享 微博 QZONE 微信 ysshao 赞...

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

1716. laya.d3.core.Sprite3D [ 52%]

...更新 Sprite3D  _updateConch(state:RenderState):void 更新 Sprite3D  addChild(node:Node):Node[override] 添加子节点。 Sprite3D  addChildAt(node:Node, index:int):Node[override] 添加子节点到指定的索引位置。 Sprite3D addChildren(... args):void 批量增加子节点 Node  a...

来源: laya_api 发布时间: 20170929

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

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

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

1718. layaAirIDE 打包APK 后 真机运行报错 [ 52%]

...n.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand.alone.version/main.min.js:1:149) at eval (http://stand.alone.version/main.min.js:1...

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

1719. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 52%]

...; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += this.bb; console.log( this.playerHB.x); if(this.playerHB.x > 1000) { this.bb *= -1; } if(this.playerHB.x < -100) { this.bb *= -1; } } 控制一直6像...

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

1720. 文字显示模糊 [ 52%]

...+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,为什么呢?   2018-02-01 0 1 分享 微博 QZONE 微信 186*****590 赞同来自: 同问,...

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