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

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

751. 自己创建的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

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

753. 子弹添加了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

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

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

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

757. 模型资源异步加载和预加载 [ 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

758. 【经验】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

759. 我看到这段话后,我 [ 70%]

...戏后没有显示,怎么解决 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? Laya中Panel控件在设计模式下,添加字内容界面。可以操作出拖动效果吗?就像可以在设计模式...

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

760. Laya2.1 加载spine动画会随机出现抖动 [ 70%]

...下 //加载spine动画 this.skeleton = new Laya.Skeleton ();  Laya.stage.addChild(this.skeleton);  this.skeleton.pos(parseInt (npcPos[0]), parseInt (npcPos[1]));  this.skeleton.load (this.curNpcInfo.npcPath); 附件 : --> 70003.zip 2019-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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