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

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

961. 如何获取实时更新的动态数据,数据在文本中 [ 67%]

....create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取...

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

962. 导出微信小游戏代码报错gameThirdScriptError [ 67%]

...gameThirdScriptError (unknown) gameThirdScriptError Cannot read property 'events' of undefined TypeError: Cannot read property 'events' of undefined     at Function.EventDispatcher.__init$ (http://127.0.0.1:52880/game/code.js:630:29)     at http://127.0.0.1:52880/game/code.js:14:71     at Arra...

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

963. 请问node 在destroy的时候 不发出事件是否有什么特殊原因吗 [ 67%]

...ree 赞同来自: //开启节点destroy 事件 LayaPatch.Enable_NodeDestroyEvent = function(){ var oldDestroy = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞...

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

964. laya.d3.core.material.ExtendTerrainMaterial_API3.0 [ 67%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

来源: Laya3.0_api 发布时间: 20231115

965. Templet资源删除不掉 [ 67%]

...          factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDataParsed); //            factory.on(Event.ERROR, this, onError); //            factory.parseData(texture, data, 60);             factory.loadAni("res/Dragon.sk");  ...

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

966. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 67%]

...         Laya.stage.addChild(button);         button.on(laya.events.Event.CLICK,this,function () {             let photo = laya.utils.Browser.getElementById("photo");            photo.click();         });     } } new GameMain(); 为什么 click事件没...

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

967. QQ玩一玩 API 中没有 BKLaya.tools.BinaryLoader 的定义 [ 67%]

...序API dialog 自定义关闭效果,效果执行完,弹窗无法关闭 event自定义事件的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 请问如何使我的自定义类...

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

968. 实例碰撞体报错,Cannot read property 'btSphereShape' of undefined [ 67%]

....core.js:9634)     at SceneLoader.create (laya.core.js:20746)     at EventHandler.__proto.run (laya.core.js:1111)     at SceneLoader.__proto.event (laya.core.js:882)     at SceneLoader.__proto._checkNext (laya.core.js:15729)     at SceneLoader.__proto.onOneLoadComplete (laya.core.js:1...

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

969. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 67%]

...w = function () {     LoginView.super(this);     this.btnReg.on(Laya.Event.CLICK, null, function () {         console.log("on btReg event")     }); } 目前编辑的代码辅助,好像还是无法获得父类的成员变量比如 btnReg。这是视频提到的一个ide的功能bug ...

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

970. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 67%]

...             this.addChild(bg2);             bg2.on(laya.events.Event.MOUSE_DOWN,this,test); } ================== public static function createSprite(url:String,c:Boolean = false):Sprite {             var sp:Sprite = new Sprite();             sp.loadImage(url); ...

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