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

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

751. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 70%]

...ng(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 this.sp.graphics....

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

752. TiledMap地图添加至Panel中不显示! [ 70%]

...看看, 地图的生成是按官方案列写的 添加方法如下 this.addChild(this.tiledMap.mapSprite()); 2017-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知识达人 赞同来自: 在panel...

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

753. 自己创建的box作为tab,为啥没有点击事件啊? [ 70%]

...BootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);     this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。     console.log("A1...

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

754. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 70%]

...ask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 能否把你的测试...

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

755. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 70%]

...create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilter.sharedMesh; bulletColli...

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

756. Skeleton骨骼动画内存泄漏 [ 70%]

...re(0); this.sk.x = 400; this.sk.y = 700; this.sk.play(0, true); Laya.stage.addChild(this.sk); } Demo如下: 附件 : --> skTest.zip 2019-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 10 个回复 Lee3260 赞同来自...

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

757. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 70%]

...ScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img: Laya.Image = new Laya.Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } } new PanelTest(); ```

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

758. sprite做的按钮点击无反应? [ 70%]

...反应? 代码如下: var dialog_mc:Sprite = new Sprite(); Laya.stage.addChild(dialog_mc); var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (stageW...

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

759. 模型资源异步加载和预加载 [ 70%]

...var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh"); this.scene.addChild(sprite3D); 2017-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 多谢分享~ 2017-08-09...

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

760. 【经验】window.focus is not a function [ 70%]

...场景 physics3D is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function at api readFile fail callback function api readFile success callback function undefined 在做微...

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