大约有 2,543 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0066 秒)
Laya_社区(2051) Laya3.0_api(129) Laya2.0_文档(109) laya_api(84) Laya2.0_api(82) Laya3.0_文档(37) Laya_示例(36) Laya2.0_示例(15)
...TMLCanvas _source : *HTMLCanvas source : *[read-only] HTMLCanvas _texture : TextureHTMLCanvasPublic Methods MethodDefined By HTMLCanvas(createCanvas:Boolean = false) 根据指定的类型,创建一个 HTMLCanvas 实例。 HTMLCanvas _getSource():*[override] HTMLCanvas clear():v...
来源: Laya2.0_api 发布时间: 20190513
...什么克隆一个对象啊? 在下面的“ tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) { let tempSpr: Sprite = new Sprite(); let tempImg: Lay...
来源: Laya_社区 发布时间: 20170508
...ImageCmd 绘制图片 Hierarchy DrawImageCmd Index Properties color height texture width x y ID Methods recover Properties color color: number = 4294967295 Defined in laya/display/cmd/DrawImageCmd.ts:34 (可选)绘图颜色 height height: number Defined in laya/display/cmd/DrawImageCmd.ts:31 (...
来源: Laya3.0_api 发布时间: 20231115
...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2DArray" Texture2DArray Class Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel ...
来源: Laya3.0_api 发布时间: 20231115
...nction onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },1500,Ease.sineOut); var bl:Number=texture.width/texture.height ape.graphics.drawTexture(tex...
来源: Laya_社区 发布时间: 20161026
...te; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { va...
来源: Laya_社区 发布时间: 20170414
...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: texture类里有 create 方法 /** * 根据指定资源和坐标、宽高、偏移量等创建 <code>Texture</code> 对象。 * @param source 绘图资源 img 或者 Text...
来源: Laya_社区 发布时间: 20180906
... { .......//前面摄影机,猴子精灵相关操作忽略 var heightMap:Texture2D = Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Texture2D; //初始化MeshTerrainSprite3D terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210714
...擎 动态创建img 或 sprite let dd = new Laya.Sprite(); dd.graphics.drawTexture(this.img.texture, 0, 0, 750, 1334); dd.x = 50; dd.y = 50; this.addChild(dd); this.img 绝对不为空,我想用一个sprite来画它,请问什么画(不是拷贝)? 2018-01-24 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20180124
...g = !this.flag)? this.monkey2:this.monkey1; //获取图片资源 var texture:Laya.Texture = Laya.loader.getRes(imgUrl); //绘制纹理 this.img.graphics.drawTexture(texture); //设置纹理宽高 this.img.size(texture.width, texture.height); <!-- 我想把加粗部分换成 ...
来源: Laya_社区 发布时间: 20180226