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

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

191. 物理射线检测(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

192. 多光源渲染(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

193. 物理射线检测(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

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

...   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

195. 动画-旧版骨骼动画 [ 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_示例 发布时间: 20241001

196. 微信小游戏加载资源问题 [ 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

197. 苹果上架直接导致账号被调查。。。 [ 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

198. 为什么字符串不能连接? [ 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

199. 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_示例 发布时间: 20241001

200. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(之前发起的问题不知道为什么找不到) [ 68%]

...但是好像没有效果 var a:Sprite = new Sprite(); var count:int = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); ...

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