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

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

281. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 53%]

...pannel里显示两张同样的图片显示不出来,只能显示一张 class LevelScrollUI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.pan...

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

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

...会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在下面加上 _showGridList: Array<any>;即可 wu语 • 2018-08-07 19:51 1.7.19.1版本不行

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

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

...){    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.js:127)     at new Test (Test.j...

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

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

....scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。

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

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

...age资源 以下为加载代码,请问这样使用是否正确:     class ShuiPao extends Sprite3D {         constructor() {             super();             let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);       ...

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

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

...aFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function ...

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

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

...} 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: class DialogPage extends ui.DialogPageUI { 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.f...

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

288. 提示资源重复加载 [ 52%]

...ol01.png"; let swimpoorpath02="Comp/yard_swimpool02.png";  export default class Yard extends 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(thi...

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

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

...制显示速度出现打字效果等  /**古文脚本 */ export default class TextAncient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, def...

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

290. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 52%]

...题。 2018-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this...

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