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

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

991. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播...

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

992. TieldMap is not counstructer [ 87%]

...is not counstructer 代码如下: //创建TiledMap实例         this._tMap = new TiledMap();         //创建Rectangle实例,视口区域         var viewRect:Laya.Rectangle = new Laya.Rectangle();         console.log(this._tMap);         //创建T...

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

993. ConchInput settype无效 [ 87%]

...settype无效 __getset(0,__proto,'type',function(){         return this._type;     },function(value){         console.info(value)         if (value=="password")             this._getCSSStyle().password=true;         else         this._getCSSSty...

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

994. Laya.Handler.create和new Laya.Handler有啥区别 [ 87%]

Laya.Handler.create和new Laya.Handler有啥区别 this.sList.mouseHandler = Laya.Handler.create(this, this.onMouse);//鼠标响应事件 this.sList.mouseHandler = new Laya.Handler(this, this.onMouse) ; // 鼠标事件响应. 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

995. 最新版本绘制100x100个sprite ios不能显示 [ 87%]

...制100x100个sprite ios不能显示 /* 游戏地图 */ function GameMap(){ this.MapRowNum = 100; this.MapColNum = 100; GameMap.super(this); this.init(); } Laya.class(GameMap, "GameMap", laya.display.Sprite); var _proto = GameMap.prototype; _proto.init = function(){ var boxSp = new laya.display.Sprit...

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

996. 怎么播放声音? [ 87%]

...var bg_sound:Laya.Sound =new Laya.Sound(); bg_sound.on(Laya.Event.COMPLETE,this,this.loadcom_f); bg_sound.on(Laya.Event.PROGRESS,this,this.loadcom_f); bg_sound.on(Laya.Event.ERROR,this,this.loadcom_f); bg_sound.load("res/bg.mp3"); private loadcom_f(e:Laya.Event):void{ console.log("------------------...

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

997. DrawPie例子中无法显示遮罩区域 [ 87%]

...ld(ape); ape.loadImage("../../res/apes/monkey3.png"); //创建遮罩对象 this.cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawPie(80,80,50, 0, 360,"#ff0000"); this.cMask.pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, ...

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

998. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...@regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animato...

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

999. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 87%]

...r WID = 375, HEI = 85; function RankListItem() { RankListItem.__super.call(this); this.size(WID, HEI); this.img = new Laya.Image(); this.addChild(this.img); this.setImg = function (src) { this.img.skin = src; } } Laya.class(RankListItem, "RankListItem", Laya.Box); //rankList var rankList = new Laya....

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

1000. TiledMap.getLayerObject [ 87%]

...bject tiledMap 中 设置对象 坐标未 96,128 为何在laya 中读取 this.role = tMap.getLayerObject("role","player"); 后 role的坐标会是112,112   Laya.init(3200,3200); //创建TiledMap实例 var tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya...

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