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

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

2491. createElement('button') 问题 [ 57%]

createElement('button') 问题 var button = Laya.Browser.window.document.createElement('button'); button.type='button'; button.value ='逐加'; button.src = "xxxxx"; button.style.width = '40px'; button.style.height = '40px'; button.style.background = "../../../bin/res/atlas/assets.png"; // mapDivx....

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

2492. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 57%]

...his.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` ​ **setForward** 平行光的方向,分别代表x、y、z轴上...

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

2493. socket.io的代码提示 [ 57%]

...编码的时候,没有代码提示?????   运行是正常的var socket = io() ;     求,怎样才能代码提示生效啊?! 2019-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什...

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

2494. 请问addchildren()具体怎么用 [ 57%]

...   public function addChildren(... args):void {             var i:int = 0, n:int = args.length;             while (i < n) {                 addChild(args[i++]);             }         } 看源码,传入节点数组 2018-08-10 0 2 分...

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

2495. 2.0场景问题? [ 57%]

...场景出来了,但是背景好像还是不对,而且我有个按钮  var buttonMy,但是在处理函数里面输出this是这个场景,而我this.buttonMy却是一个undefind?有没有大佬知道呀? 附件 : --> 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

2496. toFixed(0)函数是什么作用? [ 57%]

... MiniAdpter.autoCacheFile=true没有任何作用,并没有缓存资源 var text = new Laya.Text();为什么text.pivot(200,200);不起作用 构造函数不能进断点 问题状态 最新活动: 2018-03-26 18:27 浏览: 900 关注: 2 人

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

2497. 定时重复执行 [ 57%]

定时重复执行 var y = 0;Laya.timer.loop(1, this, ()=>{      y++; });   如果y=1000时,是不是消耗的时间应该为1秒? 为什么实际上执行的时间大于1秒? 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

2498. Laya.Texture2D.load崩溃问题 [ 57%]

Laya.Texture2D.load崩溃问题 var material = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("ceshi.jpg", Laya.Handler.create(this, function (texture) { material.albedoTexture = texture; })); 附件 : --> 2020-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

2499. 粒子不能缩放? [ 57%]

...leMode为0。 2.必须确保粒子文件加载完成后再去调整 缩放 var part:Sprite3D = scene.addChild(Sprite3D.load("part.lh")) as Sprite3D; part.once(Event.HIERARCHY_LOADED, this, function():void{        part.transform.localScale = new Vector3(3, 3, 3);  }); 2017-03-16 0 0 分享 微...

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

2500. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 57%]

... (图3) 下面演示获取旋转方位信息: ```typescript private var info:Text;   public function Gyroscope_Sample()  {  Laya.init(550, 400);     info = new Text();  info.fontSize = 50;  info.color = "#FFFFFF";  info.size(Laya.stage.width, Laya.stage.height);  Laya.st...

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