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

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

1341. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 49%]

...处理了。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; panel.on("click_start_gen", this.star...

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

1342. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 49%]

...)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 ...

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

1343. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 49%]

...行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine...

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

1344. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 49%]

...需要手动去改变新添加精灵的位置,像这样 private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var ...

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

1345. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 49%]

...ya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.zombieAni...

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

1346. 用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% [ 49%]

...tatic loads3d(id, path, handler=null):void{   s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); }  我首先用loads3d方法加载所有的.lh文件,然后用Sprite3D.instantiate方法加载入场景后,在iPhone6上性能降低...

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

1347. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 49%]

...Model/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, ...

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

1348. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...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); 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,...

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

1349. TiledMap制作横板地图 报错 [ 49%]

...报错。 以下是导入脚本。 this.map=new Laya.TiledMap(); this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");...

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

1350. laya.d3.math.Quaternion [ 49%]

...克隆。 Quaternion  cloneTo(destObject:*):void 克隆。 Quaternion  createFromAxisAngle(axis:Vector3, rad:Number, out:Quaternion):void[static] 从指定的轴和角度计算四元数 Quaternion  createFromMatrix4x4(mat:Matrix4x4, out:Quaternion):void[static] 从旋转矩阵计算四元数 Q...

来源: Laya2.0_api 发布时间: 20190513