大约有 1,754 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
...牛人的解决方案是:在LayaAirIDE根目录\resources\app\out找到main.js,打开在this.app.once("ready")这一行上面加一行:this.app.commandLine.appendSwitch("ignore-gpu-blacklist");保存,重启IDE再试试(我是有效的 ) 2019-04-13 1 0 分享 微博 QZONE 微信 sata121 赞...
来源: Laya_社区 发布时间: 20181126
...快速简单测试了一下代码是可以的。希望没漏。下面随便Main.ts启动时候执行一下this.testAsync()即可看看效果。async testAsync() { await this.testWait10s() } async testWait10s() { return new Promise((resolve,reject)=>{ Laya.timer.once(10000,this,()=>{ console.lo...
来源: Laya_社区 发布时间: 20200705
新人求教!!! // 程序入口 class Main{ //需要切换的图片资源路径 private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() { //初始化引擎 ...
来源: Laya_社区 发布时间: 20180226
...动chrome出现错误: Error processing launch: Error Could not attach to main target 关于适配采用showAll后留白部分的颜色问题 IDE1.7.8 json图集加载问题 关于使用matterjs物理引擎鼠标问题 关于Laya实现Matter.js官方案例凹多边形的问题 event自定义事件...
来源: Laya_社区 发布时间: 20170921
...der; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function o...
来源: Laya_社区 发布时间: 20160707
...index.html,待浏览器打开后,打开开发者工具查看: Main.as里把getRolesBack函数作为回调函数传给SocketProxy.as setRoleCall,但是回调回来执行getRolesBack的时候,loadCreateRole()报错:this.loadCreateRole is not a function。 回调函数里的函数执...
来源: Laya_社区 发布时间: 20170622
...(){ var Context = plus.android.importClass("android.content.Context"); var main = plus.android.runtimeMainActivity(); var clip = main.getSystemService(Context.CLIPBOARD_SERVICE); plus.android.invoke(clip,"setText","I'm copy from Native.js"); }在 ios 下,这样写: var UIPasteboard = plus.ios.im...
来源: Laya_社区 发布时间: 20170531
...6145:21) at conch.eval (http://114.115.137.176/play/main.min.js:1:263) 那位大神帮我看看,搞了3天了,拜托了,急呀 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...
来源: Laya_社区 发布时间: 20180227
... /system/lib/libc.so (__start_thread+6) (no managed stack frames) "main" prio=5 tid=1 Waiting | group="main" sCount=1 dsCount=0 obj=0x73c133c0 self=0xb4cb6500 | sysTid=16088 nice=-4 cgrp=default sched=0/0 handle=0xb6f1cb34 | state=S schedstat=( 104078950592 22625099822 716544 ) utm=...
来源: Laya_社区 发布时间: 20190612
...ttpRequest;import laya.net.Loader;import laya.utils.Browser; public class Main{private var AudioContext:Object;private var audioContext:Object;private var analyser:Object;private var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioContext || ...
来源: Laya_社区 发布时间: 20181023