大约有 467 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0036 秒)
Laya_社区(260) Laya3.0_api(94) Laya2.0_文档(62) Laya_示例(23) Laya3.0_文档(10) Laya2.0_api(10) laya_api(7) Laya2.0_示例(1)
...llText("-10000", 100, 50, 200);//有填充cxt.font="bold 60px 宋体"; let texture2D = new Laya.Texture2D(256, 256); //=====================这里如果在填充新的文字 会有所有的文字信息 ======================================== cxt.fillText("-200", 100, 50, 200);//有填充cxt.font...
来源: Laya_社区 发布时间: 20191211
...al: SkyPanoramicMaterial = new SkyPanoramicMaterial(); Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) { material.panoramicTexture = tex; skymat.material = material; })); 2020-03...
来源: Laya_社区 发布时间: 20200319
...//创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ...
来源: Laya2.0_文档 发布时间: 20210715
...ring = text[static] 文本类型,加载完成后返回文本。Loader TEXTURE2D : String = TEXTURE2D[static] Texture2D资源。Loader TEXTURECUBE : String = TEXTURECUBE[static] TextureCube资源。Loader TTF : String = ttf[static] TTF字体类型,加载完成后返回null。Loader XM...
来源: Laya2.0_api 发布时间: 20190513
...Map 怎么生成,用什么工具?或者unity插件名字叫什么 2.Texture2D加载的时候canRead属性怎么设置? 安装官方的加载示例,texuture2d加载后无法设置canRead啊 2018-11-20 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20181120
又又发现惊天大bug 使用Texture2D.load这个图片报错https://flock.oss-cn-beijing.aliyuncs.com/avatar/2e9c1503-3c16-354c-7c82-4cd8508a1685?x-oss-process=image/resize,h_432,m_lfit 原因_loadTexture2D方法里面解析不出来地址类型,临时解决方案type给个默认值nativeim...
来源: Laya_社区 发布时间: 20221014
...创建了 Textture2D如何对其进行宽高赋值 你好,我在创建了Texture2D后 ,我想对其进行宽高赋值,我发现没有相关的方法,而width和hight都是只读的。求解答。 另外我想设置像素,我看到可以getPixels ,但没有setPixels也同样求解。 我...
来源: Laya_社区 发布时间: 20190313
...Laya.BlinnPhongMaterial(); //漫反射贴图 material.albedoTexture = Laya.Texture2D.load("../../res/threeDimen/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); earth2.transform.rotate(this.rotation...
来源: Laya_示例 发布时间: 20250311
...复 专注前端三十年 赞同来自: 无雨之地 解决方法,设置Texture2D的filterMode (texture.bitmap as Laya.Texture2D).filterMode = Laya.BaseTexture.FILTERMODE_POINT; 那么问题来了,如何设置所有的默认是这个值呢 2020-12-10 1 0 分享 微博 QZONE 微信 专注前...
来源: Laya_社区 发布时间: 20201201
...么原因 this.texture1 = Laya.loader.getRes('res/images/bg1.png'); this.texture2 = Laya.loader.getRes('res/images/bg2.png'); var repeatX = 8 ; var repeatCount = Math.ceil(stageW / repeatX); for(let i = 0; i < repeatCount ; i++) { this.bg1.graphics.drawTexture(this.texture1,8*i,0); this.bg2.graph...
来源: Laya_社区 发布时间: 20180129