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

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

21. [LayaAirIDE3]2d相机打包后问题 [ 72%]

...nXLabel.text = `minX: ${this.playerScript.mapMinX}`;         minXLabel.color = "#FFFFFF";         minXLabel.pos(this.playerScript.mapMinX, this.playerScript.mapMinY - 20);         this.owner.addChild(minXLabel);          const maxXLabel = new Laya.Text();         maxXLabel.text ...

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

22. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 71%]

...550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); function onDeviceorientation(absolute, rota...

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

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

...it(550, 400);     info = new Text();  info.fontSize = 50;  info.color = "#FFFFFF";  info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(info);     Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); }   private function onDeviceorientation(absolut...

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

24. 陀螺仪与加速计 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Bo...

来源: Laya3.0_文档 发布时间: 20251010

25. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 70%]

...550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private  onDeviceorientation(absolute: ...

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

26. Mesh网格-网格加载 [ 70%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/A...

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

27. 关于缓动函数from的一些问题记录 [ 70%]

...0; Laya.Tween.to(letterText,{y:100,update:new Laya.Handler(this,this.changeColor,[letterText])},3000,Laya .Ease.backOut,Laya.Handler.create(this,this.onEaseComplete),1000,null,true); function onEaseComplete(){ console.log("ease complete"); } function changeColor(text){ console.log("update"); var c =...

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

28. 射线检测-点击行走 [ 69%]

...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = sc...

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

29. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...并减少重复的外观,每个实例可以具有不同的属性,如 Color 或 Scale。绘制调用,呈现多个实例出现在框架调试器绘制网格(实例)。 GPU Instance需要硬件的支持,确保你当前所使用的硬件可以支持GPU Instance渲染 上图展示了一个GPU Ins...

来源: Laya3.0_文档 发布时间: 20251010

30. LayaAir开发笔记(1)五十音图连连看 [ 69%]

... <title>五十音图对对碰</title> </head> <body bgcolor="gainsboro"> </body> <script src="libs/laya.core.js"></script> <script src="linkgame.js"></script> </html> 再建立个linkgame.js,用下列代码进行初始化。个人建议...

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