大约有 408 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(311) Laya2.0_文档(43) Laya3.0_api(23) Laya3.0_文档(22) laya_api(3) Laya2.0_示例(3) Laya2.0_api(3)
...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
...可以找到drawTexture()方法,除此之外,还需要了解laya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示:  (图3)  (图4)  (图5...
来源: Laya2.0_文档 发布时间: 20210715
...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
...不是html路径 我应该如何处理 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 atlas目录下.json文件与.at...
来源: Laya_社区 发布时间: 20180703
... H5动画和节奏的一个加速! (此问题已经无效) 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2018-08-16 19:34 浏览: 3438 关注: 4 人 186*****260 • 2018-07-26 20:13 Quaternion.rotationLookAt 好像是这个不对 Laya_Aaron...
来源: Laya_社区 发布时间: 20180726
...链接 提交 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
...图片资源的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
...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
...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
...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