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

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

291. SkyBoxMaterial材质详解(JavaScript-3D基础(JS)-天空材质详解) [ 57%]

....timer.frameLoop(1, this, function() { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)

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

292. 没有人尝试使用3d物理引擎么 [ 57%]

...material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; import laya.d3.resource.models....

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

293. 怎么生成唯一的随机数啊 [ 57%]

...内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 直接用Math.random生成随机数即可! 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 h690759643 相关问题 laya2的Scene默认是文件模式,不会...

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

294. drawTexture 画出来的数据会有以前的数据 [ 57%]

...on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) ht...

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

295. SkyBoxMaterial材质详解(ActionScript-3D基础(AS3)-天空材质详解) [ 57%]

...r.frameLoop(1, this, function():void { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)

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

296. IBQuadrangle不停上涨,如何定位? [ 57%]

...长时间玩会引发 throw Error("IBQuadrangle count:"+count+" must<:"+Math.floor(65535 / 4)); 游戏sprite的峰值在500以下,稳定后,基本不会新增对象。 游戏重绘稍微有点高,是因为重绘吗? 2018-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

297. 灯光-方向光 [ 57%]

...core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author ... */ public...

来源: Laya_示例 发布时间: 20251209

298. 如何实现3d遮罩效果? [ 56%]

...material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.RenderTexture; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; imp...

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

299. 请问我怎么在js中调用这个方法 [ 56%]

...function (Zszen) { var Test = (function () { function Test() { this.rand = Math.random(); } Test.output = function (){ console.log(this.rand); } return Test; }()); Zszen.Test = Test; })(Zszen || (Zszen = {}));我使用 var a = new Zszen.Test(); a.output(); //这句我调用说找不到, 应该怎么...

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

300. Laya.loader.create 进度回调函数执行两次!!! [ 56%]

...)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.19186599730944645 0.5251993306427798 1 0.5002049180327869 0.5626793032786885 0.6251536885245902 0.6876280737704918 0.7501024590163934 0.8125768442622952 0.8750512295081967 0....

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