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

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

1341. 动画-SWF动画 [ 83%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMovieClip(); } createMovieClip() { const MovieClip = Laya.MovieClip; const SWFPath = "res/swf/dragon.swf"; let MCWidth = 318, MCHeight = 406; let mc = new MovieClip(); Laya.stage.addChild(mc); mc.x = (Laya.stage.wi...

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

1342. 下面这段unity碰撞代码如何用laya2.0物理引擎实现 [ 83%]

...       num += contactPoint2D.normalImpulse;     }        this.AddResistence(collision, this.inflationUtils.GetEnemyResistance() * 0.5f, num);              num = num * (100f - this.inflationUtils.GetEnemyResistance()) / 100f;                  this.AddP...

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

1343. 网络和格式-Socket [ 83%]

...s://echo.websocket.org:80"); output = socket.output; socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); } function onSocketOpen() { console.log("Connected"); // 发...

来源: Laya_示例 发布时间: 20251219

1344. TypeError: relativePath is undefined [ 83%]

...tage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适...

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

1345. loadImage 加载图片显示不完全 [ 83%]

...问题,通过设置skin可以完全显示图片,但没有回调。 // this.downImg.skin = `${asset}/${images[1]}`; // 可以完全显示但没有回调 this.downImg.loadImage( `${asset}/${images[1]}`, Handler.create(this, this._onImgLoaded) );    附件 : --> 2021-01-20 添加评论 免费帖 ...

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

1346. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 83%]

...      createMap();          Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown);         Laya.stage.on(Event.MOUSE_UP, this, mouseUp);     })(); //创建地图     function createMap()     {         //创建地图对象         tiledMap = new TiledMap(...

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

1347. 3D:Mesh如何预加载? [ 83%]

...用Laya.loader.create才行么? Laya.loader.create(urls, Handler.create(this, this.onAssetLoaded), Handler.create(this, this.onLoading, null, false), laya.d3.resource.models.Mesh );         2016-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

1348. ani 如何 更改某一帧的 skin ,, [ 83%]

... 更改某一帧的 skin ,, ani 如何 更改某一帧的 skin ,, this.saizi.play(0,false); this.saizi.on(Event.LABEL,this,function(){ this.saizi.skin="game/room_xinxibg.png"; }); 2017-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

1349. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 83%]

....head_img, Laya.Handler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的...

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

1350. 救命啊,遇到苹果爸爸 Guideline 2.5.2 [ 83%]

...5.2 and section 3.3.2 of the Apple Developer Program License Agreement.   This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it...

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