大约有 1,004 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
Laya_社区(712) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya_示例(27) Laya3.0_文档(25) Laya2.0_示例(10)
...字体要怎么加载呢? matter中layasprite怎么改变图片大小? Texture图片能否进行翻转? IDE1.7.8 json图集加载问题 ios14系统下 blendMode='lighter' 图片异常 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 编辑了图片 执行代...
来源: Laya_社区 发布时间: 20170809
...被折叠 要回复问题请先登录 发起人 qq408896436 相关问题 Texture图片能否进行翻转? input能否根据文本内容自动调整宽高? 请问下layaflash能否支持热更新? Morn UI页面能否公用 LayaAir IDE 资源窗口那块能否像unity一样加个图片预览模...
来源: Laya_社区 发布时间: 20180603
...内存释放不了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTex...
来源: Laya_社区 发布时间: 20170224
...prite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); pi...
来源: Laya_社区 发布时间: 20181022
...text': No function was found that matched the signature provided. at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225) at Texture2D.__proto.recreateResource (laya.d3.js:37271) at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329) at ResInfo.onLoaded (laya.core.js:13189)...
来源: Laya_社区 发布时间: 20190227
...]),null,Laya.Loader.IMAGE); } private showImg(url:string):void{ var t:Laya.Texture = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接创建一个纹理来 ```typescript private com...
来源: Laya2.0_文档 发布时间: 20210714
...片以圆形的方式显示? 加载到舞台的3D模型不显示贴图 Texture图片能否进行翻转? matter中layasprite怎么改变图片大小? IDE1.7.8 json图集加载问题 ios14系统下 blendMode='lighter' 图片异常 请问下加载TFF字体要怎么加载呢? btn 鼠标移动上...
来源: Laya_社区 发布时间: 20171002
...。 (图2) #### 3. 纹理加载 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正方体,并且将加载的纹理设置为他的纹理。这个操作实际上和3D简单示例的操作是相同的。 ```typescript //加载纹理 Laya.Texture2D.load("res...
来源: Laya2.0_文档 发布时间: 20210715
...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...
来源: Laya2.0_文档 发布时间: 20210715
...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...
来源: Laya2.0_文档 发布时间: 20210714