大约有 1,380 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)
Laya_社区(850) Laya2.0_文档(129) Laya3.0_api(105) Laya_示例(75) Laya2.0_api(66) laya_api(61) Laya2.0_示例(51) Laya3.0_文档(43)
... json 数据创建节点对象。 比如: { "type":"Sprite", "props":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "customProps":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils g...
来源: Laya2.0_api 发布时间: 20190513
...d(new Laya.Scene()); var camera1 = scene.addChild(new Laya.Camera( 0, 0.1, 100)); camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); var camera2 = scene.addChild(new Laya...
来源: Laya_示例 发布时间: 20240930
...mRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); // 主要逻辑...
来源: Laya_示例 发布时间: 20240930
...,示例:</p> * * var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 * var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture * var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 * sp.graphics....
来源: Laya_社区 发布时间: 20180826
...#232628"; Stat.show(Browser.clientWidth - 120 >> 1, Browser.clientHeight - 100 >> 1); } } new Debug_FPSStats();module laya { import Browser = Laya.Browser; import Stat = Laya.Stat; export class Debug_FPSStats { constructor() { Laya.init(Browser.clientWidth, Browser.clientHeight); Stat.show(Browser.c...
来源: Laya2.0_示例 发布时间: 20240930
...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new L...
来源: Laya_社区 发布时间: 20171127
Laya能否合批渲染 比如我创建了100个相同的基础模型box。 100个模型会动态改变位置和xua旋转信息。 Laya能否自动把这100个box合批渲染呢?这样能da大量减少darwCall。 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180517
...{ var sp = new Particle2D(settings); sp.play(); sp.emitter.start(); sp.x = 100; sp.y = 100; sp.name = (i++).toString(); console.log(sp.name); Laya.stage.addChild(sp); setTimeout(function () { var emitter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya.stage.removeChi...
来源: Laya_社区 发布时间: 20170103
...这个我们测试下! 2017-07-13 0 0 分享 微博 QZONE 微信 dobest100 赞同来自: 我们测试了多次,确实不可以。要是能尽快有解决办法就太好了,十分感谢你们。 2017-07-14 0 0 分享 微博 QZONE 微信 dobest100 赞同来自: 你好,请问下你们测试了...
来源: Laya_社区 发布时间: 20170713
... json 数据创建节点对象。 比如: { "type":"Sprite", "props":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "customProps":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils g...
来源: laya_api 发布时间: 20170929