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

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

191. 其他引擎的Demo-Example_23 [ 69%]

...th.PI; lasers.push(laser); Laya.stage.addChild(laser); frequency *= 0.9; } for (let i = 0; i 60 * 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; constructor() { Laya.init(this.viewWidth,...

来源: Laya2.0_示例 发布时间: 20251130

192. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 69%]

...FromTo(this.from, this.to, this.hitResults); //遍历射线检测的结果 for (i = 0, n = this.hitResults.length; i (图3) 不穿透的射线 ![](img/4.png)(图4) 穿透的射线 B类`rayCast`,`rayCastAll`方法使用,这段代码来自于官方示例。([demo地址](https://layaair.ldc.layab...

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

193. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 69%]

...nction onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Sce...

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

194. 物理射线检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 69%]

...FromTo(this.from, this.to, this.hitResults); //遍历射线检测的结果 for (i = 0, n = this.hitResults.length; i (图3) 不穿透的射线 ![](img/4.png)(图4) 穿透的射线 B类`rayCast`,`rayCastAll`方法使用,这段代码来自于官方示例。([demo地址](https://layaair.ldc.layab...

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

195. 显示对象skew与scale同时设置时,APP与浏览器显示效果不一致 [ 69%]

...   var i:int; var spr:Sprite; var colors:Array = ["#FF0000","#FFFF00"]; for (i = 0; i < 31; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*17; spr.y = 300; spr.graphics.drawRect(-10, -40, 20, 80,colors[i%2]); spr.skewX = i * 6; spr.scaleY = 1 / Math.cos(Utils.toRadian(spr.skewX)); Laya.stag...

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

196. 动画-旧版骨骼动画 [ 68%]

...); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0...

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

197. 微信小游戏加载资源问题 [ 68%]

...ot;[res]"+str); } class MiniFileMgr { static isLocalNativeFile(url) { for (var i = 0, sz = MiniAdpter.nativefiles.length; i < sz; i++) { if (url.indexOf(MiniAdpter.nativefiles[i]) != -1) return true; } return false; } static getFileInfo(fileUrl) { var fileNativePath = fileUrl; var fileObj = ...

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

198. 苹果上架直接导致账号被调查。。。 [ 68%]

...ause your Apple Developer Program account is currently under investigation for not following the App Store Review Guidelines’ Developer Code of Conduct. Common practices that may lead to an investigation include, but are not limited to: - Inaccurately describing an app or service - Misleading app ...

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

199. 为什么字符串不能连接? [ 68%]

...,"3","4","5","6","7","8","9","a","b","c","d","e","f"]; let str:String="#"; for(let i:number=0;i<6;i++){ let index:number=arr.length*Math.random(); str+=arr[index];//在IDE里面这句报错 [ts] Operator '+' cannot be applied to types 'String' and 'String'. } return str; }   2017-11-18 添加评...

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

200. DOM元素-表单输入 [ 68%]

...nMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10...

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