大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
..._PositionWorld;\n\nvarying vec2 v_Texcoord0;\nvarying vec2 v_Texcoord1;\n\nvoid main()\n{\n gl_Position = u_MvpMatrix * a_Position;\n \n v_Normal = a_Normal;\n v_Texcoord0 = a_Texcoord0;\n v_PositionWorld = (u_WorldMat*a_Position).xyz;\n \n #ifdef CUSTOM_LIGHTMAP\n //v_Texcoord1 = a_Texcoord0 * u_li...
来源: Laya_示例 发布时间: 20260303
...); script.src = "http://localhost:9090/?a=1"; } public static onComplete():void{ console.log("JSONP执行到这里"); } } new LayaSample(); ``` ```java var script:any = Laya.Browser.createElement("script");//这句话的含义是创建一个脚本的标签,原生的所有dom元素都可以通过...
来源: Laya2.0_文档 发布时间: 20210715
...方式吗?我查了Texture2D类的format,默认写的就是(format===void 0)&& (format=1); zkang5 • 2019-02-26 13:44 多谢 zkang5 • 2019-01-04 17:14 类库里面是到2.0.0beta5, 我用的就是这个版本,,已经是最新的了,还是花的,, zkang5 • 2019-01-04 17:20 ...
来源: Laya_社区 发布时间: 20190104
...ize:Point = null, enableLinear:Boolean = true, limitRange:Boolean = false):void 中gridSize设置成(4096,4096)这时拖动地图会有所好转,但还是不能完美解决,偶尔也会出现,如果不设置gridSize只要一拖动地图就会出现黑框
来源: Laya_社区 发布时间: 20180503
...as/test.atlas",Laya.Handler.create(this,this.onComplete)); } onComplete(): void { console.log("complated"); //初始化rank排行榜 var rank = new BigRank(); //初始化 rank.init(); } } //激活启动类 new Main(); 开发者工具提示: 主域openData的文件: 附件 : --> 2020...
来源: Laya_社区 发布时间: 20200314
...nstructor() { super(); this.on('start', this, this.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var createOption: any = { isStatic: false, }; this.matterBody = Matter.Bodies.rectangle(this.x, this.y, this.width, this.height, c...
来源: Laya_社区 发布时间: 20180530
...ne.world, rock); elastic.bodyB = rock; } }); } private function onResize():void { // 设置鼠标的坐标缩放 // Laya.stage.clientScaleX代表舞台缩放 // Laya.stage._canvasTransform代表画布缩放 Matter.Mouse.setScale(mouseConstraint.mouse, {x: 1 / (Laya.stage.clientScaleX * Laya.stage._c...
来源: Laya_示例 发布时间: 20260303
...ler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var obj:Object=Laya.loader.getRes("lang.lang"); Text.langPacks=obj; var texts:Text=new Text(); texts.text="hello!welcom LayaBox"; Laya.stage.addChild(texts); } } } 2016-10-18 1 0 分享 微博 QZONE 微信 a13121527...
来源: Laya_社区 发布时间: 20161018
..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel...
来源: Laya2.0_文档 发布时间: 20210715
...nActive', this.onCollision); 2.碰撞检测 private onCollision(event): void { console.log("碰撞了.."); var home = _gamePage._mainPage._playPage; for(var i = 0; i < event.pairs.length; i++) { var pair = event.pairs[i]; if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) c...
来源: Laya_社区 发布时间: 20180601