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

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

271. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 75%]

...ME_SLOW;         Laya.Stat.show();         this.scene = Laya.stage.addChild(new Laya.Scene3D());                  Laya.timer.loop(1, this, this.loopfun);     }     loopfun(){         this.lastT = Date.now();         let dis = 1;         if(!this.cubeP){         ...

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

272. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 75%]

...景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "folder"; //设置 folder 的name 为“folder”时,将被识别为树结构的文件夹开启状态图表。2帧:...

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

273. graphics alpha 问题 [ 75%]

graphics alpha 问题 var aa:Sprite = new Sprite(); Laya.stage.addChild(aa); var g:Graphics = aa.graphics; g.alpha(0.5); g.drawRect(0,0,200,200,"#ff0000");     g. alpha()这个方法有bug吧,设置之后出现的结果对,并是设定的透明度!!   !!而且有个很有意...

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

274. 使用插件导出模型后,使用js加载ls文件,报错Laya.Scene.load is not a function [ 74%]

...ar scene = Laya.Scene.load("LayaScene_layaScene/layaScene.ls"); Laya.stage.addChild(scene); var camera = new Laya.Camera(0, 0.1, 1000); //加载到场景 scene.addChild(camera); 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

275. list 加载动画为什么实现的效果会错乱掉? [ 74%]

... ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.re...

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

276. 给模型动态添加脚本报错 [ 74%]

...el/hanbao.lh");                 goldNode = this.scene_3d.addChild(sp);                 goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5));  ...

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

277. UNITY导出的模型旋转[ 74%]

...ne.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new La...

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

278. laya 是否多窗口开发开发??? [ 74%]

...     在官方 dialog 那个demo中,适用show,改为 Laya.stage.addChild(dialog1) 就可实现此效果。 2017-03-31 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: LayaAir本身就是一个canvas标签,多窗口可以实现,你用js原生的方法来做即可,添加多个c...

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

279. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 74%]

...ree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } } import Box = Laya.Box; import Clip = Laya.Clip; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "u...

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

280. hitTestPoint对象父容器rotation旋转之后检测了碰撞 [ 74%]

...s.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入...

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