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

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

101. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 76%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#ffffff"; Laya.loader.load([this.texture1, this.texture2], Handler.create(this, this.onAssetsLoaded)); } private onAssetsLoaded(): void { this.ape = new Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(100,50); ...

来源: Laya2.0_文档 发布时间: 20210715

102. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 75%]

...可以找到drawTexture()方法,除此之外,还需要了解laya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示: ![图3](img/3.png) (图3) ![图4](img/4.png) (图4) ![图2](img/5.png) (图5...

来源: Laya2.0_文档 发布时间: 20210715

103. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 75%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...

来源: Laya2.0_文档 发布时间: 20210714

104. comp,json [ 75%]

...不是html路径 我应该如何处理 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 atlas目录下.json文件与.at...

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

105. 3d中 缓动往一个点转向并移动的问题 [ 75%]

... H5动画和节奏的一个加速! (此问题已经无效) 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2018-08-16 19:34 浏览: 3438 关注: 4 人 186*****260 • 2018-07-26 20:13 Quaternion.rotationLookAt 好像是这个不对 Laya_Aaron...

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

106. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 75%]

...链接 提交 1 个回复 微笑 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

107. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 74%]

...图片资源的atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 ...

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

108. laya.events.EventDispatcher [ 74%]

...nsform3D, BaseRender, Component3D, GeometryFilter, Gyroscope, HttpRequest, Loader, LoaderManager, Node, Shake, Socket, Sound, SoundChannel, Texture, TimeLine, Transform3D, TransformUV EventDispatcher 类是可调度事件的所有类的基类。 Public Methods  MethodDefined By  event(type:String...

来源: laya_api 发布时间: 20170929

109. laya.events.EventDispatcher [ 74%]

...ss EventDispatcherInheritanceEventDispatcher ObjectSubclasses HttpRequest, Loader, LoaderManager, Node, Socket, Sound, SoundChannel, Texture, TimeLine EventDispatcher 类是可调度事件的所有类的基类。 Public Methods  MethodDefined By  event(type:String, data:* = null):Boolean 派发...

来源: Laya2.0_api 发布时间: 20190513

110. 不带格式后缀的图片无法成功加载 [ 74%]

...lstatp-toutiao.com/obj/ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 n...

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