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

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

471. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 93%]

...ha = true;         Laya.stage.bgColor ="none";                 this.Show();             }           private iframe: any = Laya.Browser.document.createElement("iframe");     private _view: HTMLDivElement = document.createElement("div");           public Show(): void {  ...

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

472. UI-RadioGroup [ 93%]

...ng", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

来源: Laya2.0_示例 发布时间: 20241002

473. Animator无法监听complete [ 93%]

Animator无法监听complete 首先,我新增了多个clip到Animator: this.ani = this.actor.getComponentByType(Laya.Animator) as Laya.Animator; this.ani.addClip(clipSuccess, this.ANIM_SUCCESS_IDLE_NICK,0,34); this.ani.addClip(clipFailed, this.ANIM_FAILED_IDLE_NICK,0,34); this.ani.addClip(clipCardI...

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

474. 1.5.4_beta,动画播放完毕的监视器很大概率会不起作用了 [ 93%]

...    {         // 第一次创建一个动画         if (null == this.mAnimaCur)         {             this.mAnimaCur = new laya.display.Animation();             this.mAnimaCur.interval = 100;             this.addChild(this.mAnimaCur);         }         var lo...

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

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

...还要加什么东西,能不能有个demo啊,找了半天没有找到 this.popupEffect = new Handler(this, () => { this.scale(0.2, 0.2); Laya.Tween.to(this, { scaleX: 1, scaleY: 1 }, 2000); }); 2018-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

476. 关于类中方法的调用 [ 93%]

...{     function FactionListItem(data) {         FactionListItem.super(this);              this.updateLvAndPeopleCount();         this.updateLvAndPeopleCount = function(){         //-----         }     }     Laya.class(FactionListItem,"FactionListItem",FactionMainNode...

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

477. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 93%]

...([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progressUI = UIBase.create(LoadProgress.UI_LoadProgress, "LoadProgress", LoadProgress.LoadProgressBinder.bindAll) this.progressUI.UIMenu.value = 0.0...

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

478. socket与node服务端连不上?按照官方案例 [ 93%]

...不上?按照官方案例 //初始化引擎 Laya.init(600,400,Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this...

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

479. UI-ColorPicker [ 93%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, this.onColorPickerSkinLoaded)); } onColorPickerSkinLoaded() { const ColorPicker = Laya.ColorPicker, Handler = Laya.Handler; let colorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = ...

来源: Laya2.0_示例 发布时间: 20241002

480. 各位大佬,帮我看看 tiledMap 中获取不到自定义属性 [ 93%]

...r tileY = mapLayer.getTileDataByScreenPos(screenX, screenY); // var data = this.tiledMap.getLayerByIndex(3).getTileData(tileX, tileY); // console.log(data) // console.log(Laya.Keyboard.RIGHT) switch (e.keyCode) { //右边 case 39: { this.player.x += 16 break; } case 37: { //左边 this.player.x -= 1...

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