大约有 286 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0071 秒)
...: 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.drawTexture(texture);//把截...
来源: laya_api 发布时间: 20170929
... floorCollicar.colliderShape = new BoxColliderShape(10,0,2000); //加载精灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getCompon...
来源: Laya_社区 发布时间: 20190417
...ner get owner(): Sprite3D Defined in laya/d3/core/Transform3D.ts:119 所属精灵。 Returns Sprite3D position get position(): Vector3 set position(value: Vector3): void Defined in laya/d3/core/Transform3D.ts:392 世界位置。 Returns Vector3 Defined in laya/d3/core/Transform3D.ts:407 世界位置...
来源: Laya3.0_api 发布时间: 20231115
...: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图...
来源: Laya3.0_api 发布时间: 20231115
...: 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.drawTexture(texture);//把截...
来源: laya_api 发布时间: 20170929
...: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图...
来源: Laya2.0_api 发布时间: 20190513
...: 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.drawTexture(texture);//把截...
来源: laya_api 发布时间: 20170929
...: 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.drawTexture(texture);//把截...
来源: laya_api 发布时间: 20170929
...: 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.drawTexture(texture);//把截...
来源: laya_api 发布时间: 20170929
...: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图...
来源: Laya3.0_api 发布时间: 20231102