大约有 813 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)
Laya_社区(659) Laya2.0_文档(61) Laya_示例(34) Laya2.0_示例(30) Laya3.0_文档(25) Laya3.0_api(3) Laya2.0_api(1)
...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
...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
...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
... 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
...); 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
...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
...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
...,"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
...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
...但是好像没有效果 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