大约有 813 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)
Laya_社区(659) Laya2.0_文档(61) Laya_示例(34) Laya2.0_示例(30) Laya3.0_文档(25) Laya3.0_api(3) Laya2.0_api(1)
... 1 设置材质球即可。 2020-05-08 0 0 分享 微博 QZONE 微信 Just For 赞同来自: 我设置了对应的Element 0 和 Element 1 发现没效果 2020-05-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Just For 相关...
来源: Laya_社区 发布时间: 20200507
...a.stage.bgColor = "#232628"; demonstrate(); })(); function demonstrate() { for (var i = 0; i < 10; i++) { Laya.timer.callLater(this, onCallLater); } } function onCallLater() { console.log("onCallLater triggered"); var text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF...
来源: Laya_示例 发布时间: 20240930
...tion setup() { var textBox = new Sprite(); // 随机摆放文本 var text; for (var i = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; tex...
来源: Laya_示例 发布时间: 20240930
...his._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case "mousemove":; var mousePoint=Input3D._tempPoint; mousePoint....
来源: Laya_社区 发布时间: 20200119
...ge.bgColor = "#232628"; Stat.show(); this.demonstrate(); } demonstrate() { for (let i = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered"); let text = new Text(); text.font = "SimHei"; text.fontSize = 30; t...
来源: Laya2.0_示例 发布时间: 20240930
...载资源 var urls:Array = []; for (var dir:int = 0 ; dir < 8; dir ++) { for (var i:int = 0 ; i < 4 ; i ++) { urls.push("Res/atlas/array/sta...
来源: Laya_社区 发布时间: 20170921
...ew Sprite(); Laya.stage.addChild(textBox); // 随机摆放文本 let text; for (let i = 0; i < 1000; i++) { text = new Text(); textBox.addChild(text); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#ccc"; text.x = Math.random() * ...
来源: Laya2.0_示例 发布时间: 20240930
如何降低graphics绘制产生的drawcall for (var i = 0; i < 100; i++) { for (var j = 0; j < 100; j++) { img.graphics.drawRect(i, j, 2, 2, "#CD5C5C"); } } 这样绘制会有10000个drawcall 官方有能降低drawcall...
来源: Laya_社区 发布时间: 20200323
加材质后报错 [.Offscreen-For-WebGL-077FDE00]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 1 index.html:1 WebGL: too many errors, no more errors will be reported to the console for this context. 2017-09-29 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170929
...,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var i = Laya.stage.numChildren - 1; i > 0; i--) { // 接收舞台子对象 var role = Laya.stage.getChildAt(i); // 判断是否有飞机,并且是否有速度值 if(role && role.speed){ // 根据飞机速度...
来源: Laya_社区 发布时间: 20170525