大约有 1,587 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0046 秒)
Laya_社区(1114) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(52) Laya3.0_api(11) Laya2.0_api(2)
...LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoade...
来源: Laya_社区 发布时间: 20161026
...ue, false); camera.addComponent(CameraMoveScript); Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50; var boxMesh = Laya.PrimitiveMesh.createBox(0.02, 0...
来源: Laya_社区 发布时间: 20191112
...来创建 var box=new Laya.Box(); var image=new Laya.Image(); image.skin='res/001.png'; var label=new Laya.label(); label.text=' I am a Label!' box.addChild(image); box.addChild(label); Laya.stage.addChild(box); 2017-04-21 1 3 分享 微博 QZONE 微信 zhang92tong 赞同来自: 太感谢老师...
来源: Laya_社区 发布时间: 20170421
...动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUr...
来源: Laya_社区 发布时间: 20171228
...: static init(par: fgui.GComponent) { this.parent = par; this.aniPath = "res/sk/pipei.skel"; this.index = -1; this.startFun(); } static startFun() { if (!this.templet) this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLET...
来源: Laya_社区 发布时间: 20211207
...定义模型 var box : Laya.Sprite3D = scene.addChild(Laya.Sprite3D.load("res/Scene.lh")) as Laya.Sprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); //旋转方向与角度设置 var vect:Laya.Vector3 = new Laya.Vector3(1,0,0); //每10毫秒旋转一次 Laya.timer.loop(10,null,...
来源: Laya_社区 发布时间: 20180808
...页面单独建立文件夹打包) Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart)); } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20180105
...出现层级下的显示消失. 5,至今我的项目还在出现lose skin res://985bc23d-e38c-4643-84e5-503b966f2b2c 在Button.js 这个提示,但是实际上并不影响显示. 以上只作为反馈,因为不影响开发,也不好复现. 2025-07-25 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20250725
...mbieAnimator.on is not a function 创建官方示例3D Laya.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_社区 发布时间: 20190507
...r MultiplePassOutlineMaterial.initShader(); //加载网格 Laya.Mesh.load("res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new L...
来源: Laya2.0_文档 发布时间: 20210715