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

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

1041. [0]layaair2-cmd 编译bug [ 44%]

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

1042. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 44%]

...: //设置鼠标弹起事件响应 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

1043. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 44%]

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

1044. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 44%]

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

1045. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 43%]

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

1046. unity插件报错 [ 42%]

...t(3); runtime运行报错! 导微信小程序报错window.focus is not a function 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 本地调试加载本地图片都报...

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

1047. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 41%]

...a/compile.js 及 .laya/publish.js  将以上两个脚本中的如下代码function useOtherNode(){ return useIDENode||useCMDNode; }修改为:function useOtherNode(){ return true; } 至此,自动化编译、发布脚本已全部完成。   由于目前 layaair2-cmd 的 ui 命令,只能在 win...

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

1048. laya.media.SoundManager_API3.0 [ 38%]

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

1049. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 37%]

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

1050. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 34%]

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