大约有 1,416 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(871) Laya2.0_文档(129) Laya3.0_api(105) Laya_示例(75) Laya2.0_api(66) laya_api(61) Laya3.0_文档(58) Laya2.0_示例(51)
...数 ```typescript configurableConstraint.linearLimitSpring = new Vector3(100,0,0); configurableConstraint.linearDamp = new Vector3(0,0,0); ``` - 6.设置反弹力 ```typescript configurableConstraint.linearBounce = new Vector3(0.5, 0, 0); ``` **以LayaAir的示例进行说明:** ```typescript boun...
来源: Laya2.0_文档 发布时间: 20210715
...ffBody.endian=Byte.BIG_ENDIAN; buffBody.writeInt32(9); buffBody.writeInt32(100); buffBody.writeByte(1); conn.send("http://10.0.1.139:9000", buffBody.buffer, "post", "arraybuffer",null); } Byte的length长度输出为9 对面的JAVA服务器解析出来为16 我就算改成只writeByte一次,服务...
来源: Laya_社区 发布时间: 20160726
...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawText...
来源: laya_api 发布时间: 20170929
...)); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.Direct...
来源: Laya_社区 发布时间: 20190314
...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawText...
来源: laya_api 发布时间: 20170929
... //背景色 IFlash.showInfo(false); //是否显示帧率 //[IF-JS]value = 100; } } } 代码中使用LayaFlash的宏编译定义了一行只会在JS中运行的代码,这句代码在“AS3开发IDE”中编译不会提示错误。LayaFlash宏编译的使用请参看《LayaFlash宏编译》教...
来源: Laya_社区 发布时间: 20151218
...抛出错误这个知道,有没有办法绕开这个报错 尝试过draw 10000个点的时候,把a的纹理取出来重新绘制,但是好像没有效果 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...
来源: Laya_社区 发布时间: 20181113
...0ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoa...
来源: Laya_社区 发布时间: 20180315
...是新建,且没有赋值的情况下(即默认生成的时候值是0,0,100,0)确实不会报错,但如果是已存在,比如先设置sp.getComponent(ChainCollider).points = "25,25,50,50";运行后,再改变值时(如果一次运行中连续赋值2次,是不会报错的,必须执行再...
来源: Laya_社区 发布时间: 20181130
...e(); sp1.loadImage('bet/cheer_1_3.png'); const sp2 = new Sprite(); sp2.x = 100; sp2.loadImage('bet/cheer_1_4.png'); sp1.addChild(sp2); this.addChild(sp1); const htmlCanvas = sp1.drawToCanvas(640, 200, 0, 0); const canvas = htmlCanvas.getCanvas(); trace(canvas.toDataURL('image/png')); const texture =...
来源: Laya_社区 发布时间: 20171018