大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
...from "./bundle.js"; // example code let message = AwesomeMessage.create({ awesomeField: "hello" }); let buffer = AwesomeMessage.encode(message).finish(); let decoded = AwesomeMessage.decode(buffer); Monica • 2017-11-16 11:57 js原生能够实现的功能,在LayaAir中同样...
来源: Laya_社区 发布时间: 20171116
...myLaya/test/bin/libs/laya.physics.js:430:204) at box2d.b2ContactFactory.Create (file:///D:/Documents/myLaya/test/bin/libs/laya.physics.js:576:81) at box2d.b2ContactManager.AddPair (file:///D:/Documents/myLaya/test/bin/libs/laya.physics.js:586:140) at box2d.b2BroadPhase.UpdatePairs (file:///...
来源: Laya_社区 发布时间: 20190724
...的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调用,翻到下一页,左右翻页按钮去调用没问题,位置都是正确的,只有在按下鼠标...
来源: Laya_社区 发布时间: 20180911
... var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,...
来源: Laya_社区 发布时间: 20180529
...过后,问题出现了,Laya.loader.load("res/atlas/comp.json", Handler.create(this, onLoaded), null, Loader.ATLAS);这里的onLoaded函数不会被触发,导致后续界面不显示。如果点QQ小程序开发者工具里的清理缓存,界面又再次可以显示,再刷新的话,又不...
来源: Laya_社区 发布时间: 20191017
...个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNativeCallBack=function(encoding,url,type,cache,group,i...
来源: Laya_社区 发布时间: 20180704
...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") { dd=__JS__("window.loadingView"); dd.loading(10...
来源: Laya_社区 发布时间: 20160918
...e(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F1...
来源: Laya2.0_文档 发布时间: 20210714
...,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三...
来源: Laya2.0_文档 发布时间: 20210715
...后回到原大小或原位置,应该用什么缓动模式 Laya.Handler.create和new Laya.Handler有啥区别 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? mac 用layaair2.0 ide 的编辑模式下,cpu爆满 atlas目录下.json文件与.atlas的区别 LAYAAIR2.0不生...
来源: Laya_社区 发布时间: 20181219