大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0246 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...脚本类里,入口的Main已经有画布的初始化了, 第二,new Config3D,不是new Laya.Config3D, 你把你在chuanglian1.js里的这段删除 //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode...
来源: Laya_社区 发布时间: 20201022
...drawCallOptimize = true; let text1 = new Laya.Text(); text1.text = "ceshi1"; Laya.stage.addChild(text1); text1.fontSize = 40; text1.x = 280; text1.y = 180; l...
来源: Laya_社区 发布时间: 20210914
...:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math...
来源: Laya_社区 发布时间: 20171113
...p: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMa...
来源: Laya_社区 发布时间: 20190218
...Start() { console.log("Game start"); let render1 = new Laya.Sprite(); let render2 = new Laya.Sprite(); let tex1 = this.testSprite.drawToRenderTexture2D(200,200,0,0); let tex2 = this.testSprite2.drawToRenderTexture2D(200,200,0,0); ...
来源: Laya_社区 发布时间: 20251229
...tructor 使用GlowFilter的时候报错: GlowFilter is not a constructor new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor 报错,这不是个构造函数 "StartPage is not a constructor" LayaAir新建3D示例项目,在as开发模式下,运行报错 TypeError: Vector3 is n...
来源: Laya_社区 发布时间: 20190102
... ```typescript //创建方向光 this.directionLight = this.scene.addChild(new Laya.DirectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1....
来源: Laya2.0_文档 发布时间: 20210715
... let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找不到要删除的绑定内容"); } this.removeChild(source); this.__bindList.splice(index,1); } private __updateBinds():void{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for(let i...
来源: Laya_社区 发布时间: 20190805
...档里的方法写了一个js文件,在AS3脚本里加入 var worker:* = new Browser.window.Worker("my_task.js"); 执行时总是报错,加载不了my_task.js这个文件,是为什么呢? [warn]Retry to load: D:/LayaBox/1219/bin/h5/my_task.js [error]Failed to load: D:/LayaBox/1219/bin/h5/my_...
来源: Laya_社区 发布时间: 20180108
... this.graphics.drawRect(0,0,200,200,'#123456'); var viewPort = new Rectangle(0,0,200,200); this.viewport = viewPort; var ccc = new Sprite(); ccc.graphics.drawRect(0,0,50,50,'#123000'); this.addChild(ccc); //ccc.x = -30 } Laya.cla...
来源: Laya_社区 发布时间: 20170323