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

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

341. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 47%]

...信 nazgul 赞同来自: constructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建T...

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

342. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 47%]

...de(); }, this); // 获取配置创建的组件 todo } protected onHide() { super.onHide(); this.contentPane.offAllCaller(this); } private startGen(): void { // todo } } class SplitAtlasSetting { @IEditor.onLoad static start() { Editor.typeRegistry.addTypes([ { name: "SplitAtlasSetting", catalogBarSt...

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

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

344. 调用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

345. 我在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

346. 请问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

347. 使用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

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

349. 提示资源重复加载 [ 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

350. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 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