大约有 2,543 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
Laya_社区(2051) Laya3.0_api(129) Laya2.0_文档(109) laya_api(84) Laya2.0_api(82) Laya3.0_文档(37) Laya_示例(36) Laya2.0_示例(15)
...s clipOff color colorAdd defines filters mainID mmat ref shader size subID texture textureHost u_CurrentTime u_Duration u_EndVelocity u_Gravity u_MvpMatrix u_mmat2 u_texture TEMPMAT4_ARRAY Methods clear release setFilters setValue updateShaderData upload __init__ _initone create Constructors constru...
来源: Laya3.0_api 发布时间: 20231115
...) export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(url: strin...
来源: Laya3.0_文档 发布时间: 20251010
...sprite 显示问题 相机中的rendertarget转换到图片中显示不了 texture = camera.renderTarget as Texture; var sp:Sprite = new Sprite(); sp.x = 800; sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170510
...0,1为垂直3宫格,3宫格性能比9宫格高。 AutoBitmap source : Texture 对象的纹理资源。 AutoBitmap width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(v...
来源: laya_api 发布时间: 20170929
graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...
来源: Laya_社区 发布时间: 20180904
请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 Graphic drawTextures () method public function drawTextures(tex:Texture, pos:Array):void批量绘制同样纹理。 Parameters tex:Texture — 纹理。 pos:Array — 绘制次数和坐标。 请教第二个...
来源: Laya_社区 发布时间: 20170405
... 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); ...
来源: Laya_示例 发布时间: 20251209
...呢?3D不支持取图片中的一个图片吗? //2D加载图集 var texture: Laya.Texture = Laya.loader.getRes("magic/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp); //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya....
来源: Laya_社区 发布时间: 20180331
混合使用3D一、概述二、IDE中混合使用3D2.1 IDE中创建RenderTexture文件2.2 3D场景添加渲染物2.3 设置摄像机的目标纹理2.4 设置Sprite的Texture2.5 修改渲染纹理属性三、代码中混合使用3D混合使用3D 一、概述 在2D项目开发过程中,开发者...
来源: Laya3.0_文档 发布时间: 20251010
...p.drawToCanvas(100,100,0,0); //获取截屏区域的texture var _texture = htmlC.getTexture(); //将截屏的texture进行draw绘制并显示到舞台 var sp2 = new Laya.Sprite(); sp2.x...
来源: Laya_社区 发布时间: 20190215