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

大约有 486 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

341. 在UI类里调用启动类的静态函数失败了 [ 47%]

...odule view { export class GameInfo extends ui.GameInfoUI { constructor() { super(); this.kaishi_btn.on(Laya.Event.MOUSE_DOWN, this, this.onStart); // Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.birdFly);//可以绑定两个函数 Laya.stage.on(Laya.Event.KEY_DOWN, this, this.birdFly); this.init(...

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

342. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 47%]

...: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read property 'call' of undefined     at Function.<anonymous> (laya.core.j...

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

343. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 47%]

...个list item啊。 打开 dialog b 。b的构造方法: constructor() { super(); console.log(" Here is DlgNote2"); this.closeEffect = null; this.closeBtn.on(Laya.Event.CLICK, this, this.toClose); //this.show(); } b的关闭方法: toClose():void{ //Laya.Scene.open("datiPage.scene&...

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

344. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 47%]

...o extends Sprite3D {         constructor() {             super();             let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded);       ...

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

345. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 47%]

...tends Laya.Script { private progressBar: Laya.ProgressBar; constructor() { super(); } onAwake(): void { // 加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() => { // 创建进...

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

346. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 47%]

...ar urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addE...

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

347. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 47%]

...eUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 2000, Laya.Ease.bounceOut...

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

348. 提示资源重复加载 [ 47%]

...xtends Laya.Sprite { private swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpo...

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

349. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 47%]

... horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +t...

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

350. 编辑器选择分离模式生成TS代码时能自动在createChildren里加上createView调用代码么? [ 47%]

...createView调用代码么? 就像这样子: createChildren():void {     super.createChildren();     this.createView(Laya.loader.getRes("test/TestPage.json"));     this.loadUI("test/TestPage"); }   2. 在编辑器生成代码的时候怎么添加自定义的操作? 比如我想同时生成一...

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