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

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

841. laya.display.Scene [ 57%]

...型是否是鼠标事件。 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

842. laya.ui.RadioGroup_API3.0 [ 56%]

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

843. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 56%]

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

844. laya 微信小游戏 Dialog页面不能popup [ 56%]

...s.addChild 没有蒙板遮罩,Dialog里的List组件 this.list_Btn.renderHandler = new Laya.Handler(this, this.onRender); this.onRender 函数 也未执行 2018-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

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

845. drawTexture的matrix参数是怎么用的 [ 56%]

...据子节点对象,获取子节点的索引位置。参数是什么 Laya.Handler.create 加载图片回调参数问题 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? http 请求 once 的 回调参数,如何传递和接收? 点击按钮打开对话框的时...

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

846. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 56%]

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

847. 类未找到方法 [ 56%]

...行域错了,this变成window了。简单的解决办法是回调改成Handler,你这个也可以看下你添加回调方法得地方,改下也可以。,方法后面增加.bind(this) 2017-01-18 0 0 分享 微博 QZONE 微信 xuhu1518 赞同来自: RequestConfig.instance.getRequestConfig(Stri...

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

848. 材质-BlinnPhong-反射贴图 [ 56%]

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

849. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 56%]

...置播放一次后消失? 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

850. skydome可以替换贴图吗? [ 56%]

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