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

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

191. 分离模式下使用自定义场景类 [ 53%]

..._proto.parseTsImport”,修改该函数体内容:__proto.parseTsImport=function(str){ var tStr = str.replace("import",""); str = 'from'; str = tStr.indexOf(str) > -1 ? str : '='; tStr = StringTool$1.trimSide(tStr.split(str)[0]); this.importDic[tStr] = true; }当然也可以把CodeManager.pars...

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

192. 3D场景中背景无法透明,版本2.7.1 [ 53%]

...terial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

193. laya发布vivo小游戏失败 [ 52%]

...ministrator\AppData\Roaming\npm\node_modules\@vivo-minigame\cli\bin\mg' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Module._load (internal/modules/cjs/loader.js:841:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at ...

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

194. Laya2.0版本linkSprite3DToAvatarNode无法正常使用了,因为新插件导出的动画没有avatar文件了,导致挂载不上 [ 52%]

...件了,导致挂载不上     __proto._isLinkSpriteToAnimationNode=function(sprite,nodeName,isLink){         if (this._avatar){ 这一步必须要有 avatar 文件,但是用新的2.0插件导出的角色不带avatar文件导致无法挂载,可在GameUI.ts 41行下断点调试进入...

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

195. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 51%]

...运用播放动画名方式,效果如(图6)。 ```typescript public function onComplete():void{ ................. var monkey:Sprite3D = Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.look...

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

196. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 49%]

...utils.Handler; import laya.webgl.WebGL; public class TimeLineDemo { public function TimeLineDemo() { //初始化舞台 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler...

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

197. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 48%]

...terial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material;  let res1 = Laya.Sprite3D.instantiate(box); let res2 = Laya.Sprite3D.instantiat...

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

198. 如何使用vscode编译laya项目 [ 47%]

...l.publish) { prevTasks = ["loadConfig"]; } gulp.task("compile", prevTasks, function () { // 发布时调用编译功能,判断是否点击了编译选项 if (global.publish && !global.config.compile) { return; } else if (global.publish && global.config.compile) { // 发布时调用...

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

199. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 47%]

...a.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(...

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

200. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...求,例如: let str = await Editor.scene.runScript("window.eval", ` (function() { //do something return "hello"; }()) `); 4、场景进程向UI进程发送消息: //选中项目资源面板一个资源 EditorEnv.postMessageToPanel("ProjectPanel", "select", assetId); //调用自定义的Panel...

来源: Laya3.0_文档 发布时间: 20251010