大约有 192 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
... } } private function onAssetLoaded(texture:Texture):void { var ape:Sprite = new Sprite; ape.x=(apesCtn._childs.length)*(stageWidth/4) var bl:Number=texture.width/texture.height ...
来源: Laya_社区 发布时间: 20161023
...e if (type==="font"){//这里,启用webgl后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 !this._data if (!data._source){ ...
来源: Laya_社区 发布时间: 20190402
...te; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function GraCmdsDemo() { //初始化舞台 Laya.init(Browser.width,Browser.height,WebGL); //预加载...
来源: Laya_社区 发布时间: 20170519
求问Texture和Texture2D的区别,和使用问题 对用引擎中这两个类的分别不太清楚,有以下几个问题:1、Texture和Texture2D有什么区别?我发现自己用Laya.loader.load的图片或ui加载的就是Texture,加载.ls/.lh自动生成的贴图就是Texture2D 2、...
来源: Laya_社区 发布时间: 20180314
Texture,和Texture2D如何互转? 我要设置模型的贴图,我通过Laya.Texture2D.load(path)读取到的是Texture,不能直接设置到Texture2D上去 2018-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...
来源: Laya_社区 发布时间: 20180521
...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170929
...代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资...
来源: Laya2.0_文档 发布时间: 20210715
...ds cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创建...
来源: Laya3.0_api 发布时间: 20231102
Laya2.1.0的BUG!Texture类的getTexturePixels var uv=null; if (x !=0 || y !=0 || width !=texw || height !=texh){ uv=uv.concat();我想知道,引擎这段报错代码是什么鬼? Texture类的getTexturePixels 定义:var uv=null; 然后:uv=uv.concat(); ???? 附件 : --> 2019-07-0...
来源: Laya_社区 发布时间: 20190705
...下: ```java package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路...
来源: Laya2.0_文档 发布时间: 20210714