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

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

301. Laya.Tween.to 有没有监听值的变化的方法? [ 57%]

...   * @return  返回Tween对象。          */         public function to(target:*, props:Object, duration:int, ease:Function = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false):Tween {             return _create(target, props, duration, ease,...

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

302. 背景音乐播放内存问题 [ 57%]

...擎类中的WebAudioSound类的dispose方法改了,改成了这样:   public function dispose():void { delete _dataCache[url]; delete __loadingSound[url]; this.audioBuffer = null; this.data = null; this.__toPlays = []; super.dispose(); }   如果不添加最后4行代码的话,每次切换...

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

303. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 57%]

...Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 *...

来源: Laya3.0_文档 发布时间: 20251010

304. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 57%]

...HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.upload.onprogress= function(e:any):void { //上传进...

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

305. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 57%]

...= mX; this.isDown = true; } private mouseUp():void{ this.isDown = false; } public rotate(vec:Laya.Vector3):void{ this.entity.transform.rotate(vec,true,false); }   2018-01-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

306. JSONP跨域读取数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 57%]

...ent.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } public static onComplete():void{ console.log("JSONP执行到这里"); } } new LayaSample(); ``` ```java var script:any = Laya.Browser.createElement("script");//这句话的含义是创建一个脚本的标签,原生的所...

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

307. 实体组件系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 57%]

...ort class NewScript extends Laya.Script { @property({ type : Laya.Sprite}) public spr: Laya.Sprite; onAwake(): void { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如图4-2所示: (图4-2) 4.1.2 3D节点的基础使用 首...

来源: Laya3.0_文档 发布时间: 20251010

308. LayaAir2.0开始就无法设置透明背景了吗? [ 56%]

LayaAir2.0开始就无法设置透明背景了吗? public function Main() { //根据IDE设置初始化引擎 Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = "none"; }   AS3版,从Laya1.x升级过来之后,发现2.0-2.8都无法通过这个来设置背景透明。 这让人...

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

309. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 56%]

...Handler.create(this, onAssetsLoaded), null, Loader.JSON);           public function onAssetsLoaded(settings:ParticleSetting):void         {             sp = new Particle2D(settings);             sp.emitter.start();                  sp.play();         ...

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

310. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 56%]

...错,用JS语言开发却可以加载 按照 技术文档里的事例: public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandl...

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