大约有 682 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0048 秒)
Laya_社区(332) Laya3.0_api(109) laya_api(75) Laya2.0_api(70) Laya2.0_文档(59) Laya3.0_文档(30) Laya2.0_示例(4) Laya_示例(3)
... = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0) 创建一个 Texture 实例。 Texture create(source:Texture2D, x:Number, y:Number, width:Number, height:Number, offsetX:Number = 0, offsetY:Number = 0, sourceWidth:Number = 0, sourceHeight:Number = 0):Texture[static] 根...
来源: Laya2.0_api 发布时间: 20190513
...色滤镜,需要先设置一个颜色矩阵,然后用ColorFilter方法创建一个颜色滤镜实例,如下面的代码所示: ```java //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,红色 var redMat:Array = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0,...
来源: Laya2.0_文档 发布时间: 20210715
[LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 附件 : --> 2024-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_XS 赞同来自: 因为你没有提供相应的demo来...
来源: Laya_社区 发布时间: 20240305
... texture.wrapModeV = Laya.WrapMode.Clamp; //创建Texture let texture1: Laya.Texture = new Laya.Texture(texture); let a = new Laya.Sprite() //使用Sprite对象的绘制纹理方式 a.graphics.dra...
来源: Laya_社区 发布时间: 20230316
...制数据转成Texture? 通过Loader加载好文件,得到Byte,怎么创建Texture? 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 如果你的二进制是一张纹理...
来源: Laya_社区 发布时间: 20170502
...xture.height) / 2; Laya.stage.addChild(ape); } function applayFilter() { //创建一个发光滤镜 var glowFilter = new GlowFilter("#ffff00", 10, 0, 0); //设置滤镜集合为发光滤镜 ape.filters = [glowFilter]; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; impor...
来源: Laya_示例 发布时间: 20250221
...吗?还是说只能靠Texture这种方式,每次都要调用的时候创建? 如题,谢谢! 2017-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: http://ask.layabox.com/quest...
来源: Laya_社区 发布时间: 20170505
...ic class SkyDomeInheritanceSkyDome Sky laya.resource.Resource Sky 类用于创建天空盒。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaBlending : Number 获取透明混合度。 Sky colorIntensity : Number 获取颜色强度。 Sk...
来源: laya_api 发布时间: 20170929
...is.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个发光滤镜 const GlowFilter = Laya.GlowFilter; let glowFilter = new GlowFilter("#ffff00", 10, 0, 0); // 设置滤镜集合为发光滤镜 this.ape.filters = [glowFilter]; } } new Filters_Glow();module laya { imp...
来源: Laya2.0_示例 发布时间: 20250221
...宽度。 BaseTexturePublic Methods MethodDefined By DataTexture2D() 创建一个 Texture2D 实例。 DataTexture2D create(data:ArrayBuffer, w:int, h:int, magfilter:int, minfilter:int, mipmap:Boolean = true):DataTexture2D[static] DataTexture2D getPixels():Uint8Array 返回图片像素。 ...
来源: laya_api 发布时间: 20170929