大约有 435 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(186) Laya3.0_api(80) Laya2.0_api(60) laya_api(52) Laya2.0_文档(30) Laya3.0_文档(25) Laya2.0_示例(1) Laya_示例(1)
... * @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
...擎类中的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
...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
...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
...= 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
...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
...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
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
...Handler.create(this, onAssetsLoaded), null, Loader.JSON); public function onAssetsLoaded(settings:ParticleSetting):void { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); ...
来源: Laya_社区 发布时间: 20170522
...错,用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