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

大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

701. 两个构造函数怎么相互调用,使用对方的变量? [ 64%]

...,使用对方的变量? A.js:var A=(function(){ function A(){ this.a=0; } })(); var a=new A(); B.js: var B=(function(){ function B(){ this.b=1; } })(); 我想在B.js文件中用A.js的属性a,该怎么操作,请大神帮帮小白。谢谢! 只用代码怎么实...

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

702. 自己画的view不支持鼠标点击吗? [ 64%]

...1=new View(); btn_1.graphics.drawPath(0, 0, path, {fillStyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1);     不管怎么点,在这个点击方法里面是不会执行的  2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE ...

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

703. 刮刮卡效果实现 [ 64%]

... var interactionArea; var ape; var mouseX = 0; _proto.onInit = function(){ this.guaSpr.cacheAs = "bitmap"; ape = new Sprite(); this.guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMo...

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

704. Pool 使用 Laya.Prefab [ 64%]

...aya.Prefab; let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox); 运行报错: Cannot read property 'create' of undefined targetBox又在 control里面引用一个Prefab 2019-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

705. Uncaught TypeError: tex.once is not a function [ 64%]

...ncaught getUint16 error - Out of bounds 调用动画结束on方法,报错this.zombieAnimator.on is not a function 运行报错 Uncaught Can not find scene:GameView.scene undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor 问题状态 最新活动: 2019-06-24 10:22 ...

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

706. laya引擎里是否有生命周期? [ 64%]

...注: 2 人 15818760256 • 2017-10-20 18:42 是自带的removed事件吗?this.on(Laya.Event.REMOVED,this,onRelease); 这样写对吗js里的。。

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

707. TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function [ 63%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of u...

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

708. JS的WebGL模式下使用Laya.Video报跨域错误 [ 63%]

...resource/2.webm'; var video = new Laya.Video(); video.on('loadedmetadata', this, function() { console.info(video.width + ',' + video.height); Laya.stage.addChild(video); video.play(); }); video.load(video_url); Laya版本是1.7.4Beta Chrome 58下运行报错   laya.device.js增加跨域属性后解...

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

709. Uncaught TypeError: e.getStackTrace is not a function [ 63%]

...ncaught getUint16 error - Out of bounds 调用动画结束on方法,报错this.zombieAnimator.on is not a function 运行报错 Uncaught Can not find scene:GameView.scene undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor 问题状态 最新活动: 2017-01-20 16:57 ...

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

710. spine 回调函数的参数没有效果 [ 63%]

...都是0,spine 输出文件见附件   sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { }   var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 : --> 归档.zip 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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