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

大约有 813 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

91. laya更换材质问题 [ 76%]

... 1 设置材质球即可。 2020-05-08 0 0 分享 微博 QZONE 微信 Just For 赞同来自: 我设置了对应的Element 0 和 Element 1  发现没效果    2020-05-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Just For 相关...

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

92. 计时器-延迟调用 [ 76%]

...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

93. Sprite-缓存为静态图像 [ 76%]

...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

94. 3D 鼠标检测 错乱 [ 76%]

...his._eventList.length; var cameras=this._scene._cameraPool; if (n &gt; 0){ for (i=0;i &lt; 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

95. 计时器-延迟调用 [ 76%]

...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

96. 动画不显示 [ 76%]

...载资源             var urls:Array = [];             for (var dir:int = 0 ; dir &lt; 8; dir ++)             {                 for (var i:int = 0 ; i &lt; 4 ; i ++)                 {                     urls.push("Res/atlas/array/sta...

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

97. Sprite-缓存为静态图像 [ 76%]

...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

98. 如何降低graphics绘制产生的drawcall [ 76%]

如何降低graphics绘制产生的drawcall     for (var i = 0; i &lt; 100; i++) {         for (var j = 0; j &lt; 100; j++) {             img.graphics.drawRect(i, j, 2, 2, "#CD5C5C");         }     } 这样绘制会有10000个drawcall 官方有能降低drawcall...

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

99. 加材质后报错 [ 75%]

加材质后报错 [.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

100. 为什么会出现报错 ani not found:ufo1_down [ 75%]

...,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var i = Laya.stage.numChildren - 1; i &gt; 0; i--) { // 接收舞台子对象 var role = Laya.stage.getChildAt(i); // 判断是否有飞机,并且是否有速度值 if(role &amp;&amp; role.speed){ // 根据飞机速度...

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