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

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

331. laya.device.motion.Gyroscope [ 53%]

...| Frames No Frames GyroscopeProperties | Methods Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientat...

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

332. 发布到微信小游戏后Timer的getHandler报错了 [ 53%]

...to._create (http://127.0.0.1:55825/game/code.js:22320:21) at Timer.__proto.once (http://127.0.0.1:55825/game/code.js:22365:8) at MyData.__proto.catchCard ( 于是我定位到编译好的code.js, 是在Timer的这个函数中,获取$_TID时报错了 /**@private */ __proto._getHandler=function(cal...

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

333. laya.d3.component.physics.Collider [ 53%]

...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...

来源: laya_api 发布时间: 20170929

334. Laya3D init error,must support webGL [ 53%]

...在LayaAirIDE根目录\resources\app\out找到main.js,打开在this.app.once("ready")这行上面加一行: this.app.commandLine.appendSwitch("ignore-gpu-blacklist"); 保存,重启IDE再试试(我试过是可以的 ) 2019-04-13 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

335. 怎么打开第二个工程 [ 53%]

...ublic class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少。 ifra...

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

336. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 53%]

... = new HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); } private function processHandler(data:Object):void { ...

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

337. 请问如何释放atlas和他的png资源 [ 53%]

...age.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya.timer.once(1000,1,ddd); } private function ddd():void { trace("aaa1",Laya.loader.getRes(url)); Laya.stage.removeChildren(); Laya.loader.clearRes(url); trace("aaa2",Laya.loader.getRes(url)); }   2017-12-06 添加评论 免费帖 --...

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

338. image.drawToCanvas方法获取的一直是空的png [ 53%]

...new Image(); img.skin="res/logo.png"; Laya.stage.addChild(img); Laya.timer.once(500,this,onClick); //Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { var htmlCanvas:HTMLCanvas=img.drawToCanvas(100,100,0,0) as HTMLCanvas; var texture:Texture=new Texture(htmlCanvas); var sp...

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

339. laya.d3.component.AttachPoint [ 53%]

...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...

来源: laya_api 发布时间: 20170929

340. Laya导入到微信开发者工具Cannot assign to read only property 'window' of object '#<Window>' [ 53%]

...赞同来自: 遇到同样问题 2019-09-04 0 0 分享 微博 QZONE 微信 Onces 赞同来自: 同样的问题 ES6转ES5取消后 才行 2019-09-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1566701139用户 相关问题 看了其...

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