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

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

221. [分享]Dialog 点击边缘不关闭的 Demo示例 [ 54%]

...se(type?:string, showEffect?:boolean):void{ if(type === "side"){ return; } super.close(type, showEffect) }  刚下载了楼上的zip。方法生效了。表示感谢。 把代码贴出来。免得别人再去下载了。 2018-11-29 1 0 分享 微博 QZONE 微信 callback 赞同来自: Laya.UIConfig...

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

222. RopeJoint代码动态创建 无法设置otherbody [ 54%]

...:fruit;     public rope:Laya.RopeJoint     constructor() {         super();        fruit.Fru=this;             }      onAwake() {         let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody);         var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody);    ...

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

223. dialog里面的内容怎么不能添加到舞台 [ 54%]

...txt} // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dataSource); console.log(self.foodList._array[0].food); //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台...

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

224. 3D场景跳转到2D场景问题 [ 54%]

...port default class VictoryScene extends VictorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大...

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

225. 刚接触laya的一系列问题 [ 54%]

...延迟两帧以后设置就可以了,用不了button,只能用this和super

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

226. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...tion }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay =...

来源: Laya3.0_文档 发布时间: 20251010

227. loadLib("libs/laya.device.js"); native上会随机宕 [ 54%]

...detroyChildren===void 0)&& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this.videoElement.removeEventListener("abort",Video.onAbort);         // this.videoElement.removeEventListener("...

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

228. 实例化 laya.ani.bone.Skeleton 对象报错 [ 54%]

...报错 export default class showSpine extends Laya.Script{ constructor() { super(); //创建一个Skeleton对象 //Laya let skeleton: laya.ani.bone.Skeleton = new laya.ani.bone.Skeleton(); } } 实例化报错 为啥 2018-09-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

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

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

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

230. bug:laya.Scene.destroy [ 54%]

... (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){ if (list[i]===this){ list.splice(i,1); return; } } }这里改动了同一个数组,...

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