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

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

821. 新人求教!!! [ 57%]

...添加到舞台      Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{    //创建一个实例    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图...

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

822. 加载UI为什么总是加载白底 [ 57%]

...or = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(...

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

823. laya.ui.RadioGroup_API3.0 [ 57%]

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

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

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

825. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 57%]

...,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("Ti...

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

826. 位图加载回调不触发 [ 57%]

...发 let bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont(url, Laya.Handler.create(this, this.loadFNTComplete, [url, bitmapFont])); 2.1.0之前的版本这样运行正常,升级到2.1.0beta版本后 loadFNTComplete未触发 2019-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

827. 材质-BlinnPhong-反射贴图 [ 57%]

...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_示例 发布时间: 20251219

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

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

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

829. DialogManager 内部的方法能改成私有的吗? [ 57%]

...这样的方法?或求3D抛物线移动的方法或算法。 源代码中Handler中的setTo()方法 Laya的应用内支付方法调用 Laya.Scene.open打开的对话框中如何在关闭的时候调用父Scene中的方法 关于动画ani文件,编辑ani文件需不需要使用loadanimation方法...

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

830. 富文本使用图集 [ 57%]

...s: ani 这是我哪里用的不对吗?   Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS);  public function createAnimation():void         {             var appendHtml:HTMLDivElement=new HTMLDivElement();             appendHtml.inn...

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