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

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

991. laya.device.motion.Gyroscope [ 67%]

... Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):voi...

来源: Laya2.0_api 发布时间: 20190513

992. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 67%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffe...

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

993. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 67%]

...14313) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at Loader.__proto.onLoaded (libs/laya.core.js:16316) at EventHandler....

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

994. 请问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

995. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 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

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

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

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

997. 如何获取实时更新的动态数据,数据在文本中 [ 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

998. 请问: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

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

1000. laya.ui.TextArea [ 67%]

...ll Classes | Index | Frames No Frames TextAreaProperties | Methods | Events Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label Component Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited...

来源: laya_api 发布时间: 20170929