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

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

51. 新手学js做开发,写了一个按钮,点击没有反应 [ 79%]

...on LoginView(){         LoginView.super(this);     }     Laya.class(LoginView,"LoginView",_super);     return LoginView; })(ui.LoginUI);   2018-01-30 0 0 分享 微博 QZONE 微信 sky_summer 赞同来自: 我是根据视频上学的(如下截图),我对照了一下,他这...

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

52. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 78%]

...() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = type; this.body = null; Air.__super.cal...

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

53. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 78%]

...声明场景中的Button等控件? export module ui {     export class GameSceneuiUI extends Laya.Scene {         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button...

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

54. layaMaxUI.ts的自动生成代码bug [ 78%]

...ide编辑模式中使用   运行demo 按F12 生成 代码如下/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import SceneBase from '../SceneBase' import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; expor...

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

55. ts项目 模块问题 [ 78%]

ts项目 模块问题 b文件写了个class ,怎么在a文件new class? export 显示未定义,require也用不了   //b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this...

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

56. 物体随着鼠标滑动旋转脚本 [ 78%]

...    this.mainCameraAnimation = null;     this.scene = null; } Laya.class(ObjectRotate, "ObjectRotate", Laya.Script);  //这是什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) {     var _this = this;     ObjectRotate.__super.prototype._initialize.call...

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

57. 官方的示例贴上来,怎么没反映啊 [ 78%]

...ndler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, "ui.JiHuo", _super); return JiHuo; })(ui.JiHuoUI); 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 w1114367261 赞...

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

58. List滚动条问题 [ 77%]

...ice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender = xgame.marketitem; list.repeatX = 3; list.repeatY = 1; list.spaceX = 10; list.hScrollBarSkin = ""; /...

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

59. 如何在游戏入口处获取对象的子对象 [ 77%]

...ap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" ...

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

60. CameraMoveScript.as在哪儿下载群里的有错 [ 77%]

...s.Event; import laya.events.KeyBoardManager; /** * ... * @author */ public class CameraMoveScript extends Script { protected var lastMouseX:Number; protected var lastMouseY:Number; protected var yawPitchRoll:Vector3 = new Vector3(); protected var resultRotation:Quaternion = new Quaternion(); protect...

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