大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
...型是否是鼠标事件。 EventDispatcher load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture...
来源: Laya2.0_api 发布时间: 20190513
...ckage { import laya.ui.Radio; import laya.ui.RadioGroup; import laya.utils.Handler; public class RadioGroup_Example { public function RadioGroup_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/u...
来源: Laya3.0_api 发布时间: 20231115
....Vector3(1, -1, 0)); Laya.Sprite3D.load("h5/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(this,this.ok)); } ok(sp:Laya.Sprite3D):void{ //得到原始Sprite3D this.sp = sp; this.scene3d.addChild(sp); //克隆Sprite3D this.sp2 = Laya.Sprite3D.instantiate(this.sp,null,false); //错开点位置 this.sp2...
来源: Laya_社区 发布时间: 20190618
...s.addChild 没有蒙板遮罩,Dialog里的List组件 this.list_Btn.renderHandler = new Laya.Handler(this, this.onRender); this.onRender 函数 也未执行 2018-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...
来源: Laya_社区 发布时间: 20180825
...据子节点对象,获取子节点的索引位置。参数是什么 Laya.Handler.create 加载图片回调参数问题 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? http 请求 once 的 回调参数,如何传递和接收? 点击按钮打开对话框的时...
来源: Laya_社区 发布时间: 20180720
...sh({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initVie...
来源: Laya_社区 发布时间: 20180308
...行域错了,this变成window了。简单的解决办法是回调改成Handler,你这个也可以看下你添加回调方法得地方,改下也可以。,方法后面增加.bind(this) 2017-01-18 0 0 分享 微博 QZONE 微信 xuhu1518 赞同来自: RequestConfig.instance.getRequestConfig(Stri...
来源: Laya_社区 发布时间: 20170118
...Stage; import laya.events.Event; import laya.net.Loader; import laya.utils.Handler; import laya.utils.Stat; public class BlinnPhong_ReflectMap { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function BlinnPhong_ReflectMap() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCA...
来源: Laya_示例 发布时间: 20251209
...置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20180117
...ew SkyPanoramicMaterial(); Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) { material.panoramicTexture = tex; skymat.material = material; })); 2020-03-19 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20200319