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

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

1151. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 44%]

... = Laya.Browser; export default class GameRecorderMgr { /**录屏实例**/ private _recorder: any; static _instance: GameRecorderMgr; /**视频地址**/ private _videoPath: String = ""; constructor() { GameRecorderMgr.instance = this; //判断是否已初始化录屏对象 if (!this._recorder) { //...

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

1152. 微信小游戏编译出错 [ 44%]

...ascii编码的吗 Yangcy • 2018-06-11 10:39 @Laya_Aaron:ascii编码? private var assetArr:Array=[{url: "res/atlas/comp.atlas"}, {url: "res/atlas/wxlocal.atlas"}, {url: "res/atlas/middleMoive.atlas"}, {url: "res/atlas/resoutel.atlas"}, {url: "res/atlas...

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

1153. laya.d3.core.MeshTerrainSprite3D [ 44%]

...nabled属性)。 Node onAsynLoaded(url:String, data:*, params:Array):void private Sprite3D once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件响应一次后则自动移除侦...

来源: laya_api 发布时间: 20170929

1154. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 44%]

...nabled属性)。 Node onAsynLoaded(url:String, data:*, params:Array):void private Sprite3D once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件响应一次后则自动移除侦...

来源: laya_api 发布时间: 20170929

1155. 分享个资源加载的方法,类似白鹭的加载方式 [ 44%]

...加载出错 public static ONLOADGROUPERROR: string = "onLoadGroupError"; private static _res:RES; public static getInstance():RES{ if(!RES._res){ RES._res = new RES(); } return RES._res; } /** * 加载资源配置文件 */ public static loadResJson(srcName: string,caller: any){ Laya.loader.load("re...

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

1156. LayaAir下TTF字体的使用方式? [ 43%]

...(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="嘻嘻嘻嘻嘻"; text.font="hu" Laya.stage.addChild(text); } } }  注意:  首次用到的(哈)字将会...

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

1157. 屏幕方向:自动横屏与自动竖屏的设置详解(ActionScript-LayaAir基础篇(AS3)-屏幕适配) [ 43%]

...长边保持垂直 //Laya.stage.screenMode = "vertical"; showScreen(); } private function showScreen():void { //图片 var img:Image = new Image(); img.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Label = new Label(); text.text = "游戏...

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

1158. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 43%]

...json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常,其他child消失 parent.child_1.rota...

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

1159. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 43%]

...er.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }new Main(); ``` 运行后,按钮被按下时,动画效...

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

1160. 求HTTP相关的文档或者例子谢谢了 [ 43%]

...) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { //第一步:加载数据:创建URLLoader对象 var urlLoader:URLLoader=new URLLoader(); //第二部:设置接收数据的方式(TEXT:文本,BINARY:原始二进制数据...

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