• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 192 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)

21. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 85%]

...       }         }         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

22. Laya.loader.load加载位图字体 [ 85%]

...e if (type==="font"){//这里,启用webgl后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 !this._data             if (!data._source){              ...

来源: Laya_社区 发布时间: 20190402

23. 分享:Graphics下cmds命令流的使用! [ 85%]

...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

24. 求问TextureTexture2D的区别,和使用问题 [ 85%]

求问TextureTexture2D的区别,和使用问题 对用引擎中这两个类的分别不太清楚,有以下几个问题:1、TextureTexture2D有什么区别?我发现自己用Laya.loader.load的图片或ui加载的就是Texture,加载.ls/.lh自动生成的贴图就是Texture2D   2、...

来源: Laya_社区 发布时间: 20180314

25. Texture,和Texture2D如何互转? [ 84%]

Texture,和Texture2D如何互转? 我要设置模型的贴图,我通过Laya.Texture2D.load(path)读取到的是Texture,不能直接设置到Texture2D上去 2018-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

来源: Laya_社区 发布时间: 20180521

26. laya.ani.swf.MovieClip [ 82%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

27. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 82%]

...代码如下: ```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

28. laya.net.LoaderManager_API3.0 [ 81%]

...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

29. Laya2.1.0的BUG!Texture类的getTexturePixels [ 81%]

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

30. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 80%]

...下: ```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