大约有 1,054 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
Laya_社区(615) Laya_示例(157) Laya2.0_文档(149) Laya2.0_示例(116) laya_api(7) Laya3.0_文档(5) Laya3.0_api(3) Laya2.0_api(2)
...:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:849:19) at require (internal/modules/cjs/helpers.js:74:18) exit:1 [qykings@ cq3]$ [qykings@ cq3]$ [...
来源: Laya_社区 发布时间: 20210420
...: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法获得最短路径 this._everyPath ...
来源: Laya3.0_文档 发布时间: 20230303
....loader.load(this.skPath.replace(".atlas",".png"),Laya.Handler.create(this,function(bit){ var arr = Laya.Loader.getAtlas(this.skPath); arr.forEach(resUrl=>{ var tex = Laya.Loader.getRes(resUrl) as...
来源: Laya_社区 发布时间: 20200317
...seEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true...
来源: Laya_社区 发布时间: 20161109
...99999"); Laya.stage.addChild(sp);4、实现超链接 示例如下:public function HtmlDemo() { var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span href='http://ask.layabox.com/'>LayaBox欢迎你的加入!</span>"; div.on(Event.LINK,this,onLink); Laya.stage.addChild(div)...
来源: Laya_社区 发布时间: 20161027
...t(3); runtime运行报错! 导微信小程序报错window.focus is not a function 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 本地调试加载本地图片都报...
来源: Laya_社区 发布时间: 20210607
...a/compile.js 及 .laya/publish.js 将以上两个脚本中的如下代码function useOtherNode(){ return useIDENode||useCMDNode; }修改为:function useOtherNode(){ return true; } 至此,自动化编译、发布脚本已全部完成。 由于目前 layaair2-cmd 的 ui 命令,只能在 win...
来源: Laya_社区 发布时间: 20201223
...me stopAll stopAllSound stopMusic stopSound Legend Object literal Variable Function Type alias Class Class with type parameter Static property Static method Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
...exture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function(): void { var t: Texture = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(100, 50); })); } } } new laya.Sprite_D...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.Scene3D.load("Conventional/SampleScene.ls", Laya.Handler.create(null, function (_Scene3D: Laya.Scene3D) { //添加3D场景到舞台 Laya.stage.addChild(_Scene3D); let _camera = _Scene3D.getChildByName("Main Camera") as Laya.Camera; _camera.clearFlag = Laya.CameraClearFlags.Sky; //从场景中...
来源: Laya2.0_文档 发布时间: 20210715