大约有 481 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
Laya_社区(255) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(19)
....timer.frameLoop(1, this, function() { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...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
...内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 直接用Math.random生成随机数即可! 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 h690759643 相关问题 laya2的Scene默认是文件模式,不会...
来源: Laya_社区 发布时间: 20170320
...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
...r.frameLoop(1, this, function():void { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...长时间玩会引发 throw Error("IBQuadrangle count:"+count+" must<:"+Math.floor(65535 / 4)); 游戏sprite的峰值在500以下,稳定后,基本不会新增对象。 游戏重绘稍微有点高,是因为重绘吗? 2018-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180730
...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
...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
...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
...)); 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