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

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

1631. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 53%]

... Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯...

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

1632. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 53%]

... Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯...

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

1633. 特效LOADED监听不到 [ 53%]

...ght / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } } }你也可以加个延迟,延迟调用下ani的宽高再试下,如果还不行,可以提供下你的例子,我们看下 2017-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

1634. 我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 [ 53%]

...何截取小数点之前的数字 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? LayaAir IDE 1.7.15 beta 九宫格在ie11下有缝隙,希望得到关注和解决! 问题状态 最新活动: 2018-06-13 ...

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

1635. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 53%]

...交 2 个回复 hj 赞同来自: var logo = new Laya.Sprite(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.wi...

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

1636. HTMLDIVElement设置innerHTML时报错 [ 53%]

...os(500, 300); html.size(html.contextWidth, html.contextHeight); Laya.stage.addChild(html); setTimeout(function() { html.innerHTML = ''; }, 300);此问题是由于在新版中改变了laya.html.js的HTMLDivElement中width的set方法 之前的版本中,set方法为/** *获取对象的宽 */ __getse...

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

1637. Unity粒子特效导出的lh文件,使用了无法出现效果 [ 53%]

...articleRoot = Laya.Sprite3D.load("3d/LayaScene_Samples/Samples.lh"); scene.addChild(particleRoot); 这样使用lh文件,导出的文件中也只有这个文件。 编译正常没有报错,就是没有效果。   附件 : --> 2017-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

1638. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 53%]

...r sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(...

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

1639. 图片通过drawTexture平铺出现缝隙 [ 53%]

...Texture平铺出现缝隙 this.darwSprite = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);         this.da...

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

1640. 转换2D屏幕坐标系统到3D正交投影下的坐标系统位置偏差 [ 53%]

...下图一。let cube = new MeshSprite3D(PrimitiveMesh.createBox()); scene.addChild(cube); let pos = new Vector3(); let screenPos = new Vector3(); Laya.timer.frameLoop(1, this, ()=>{ camera.orthographic = true; screenPos.setValue(camera.clientWidth / 2, camera.clientHeight / 2, 0.1); //converScree...

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