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

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

991. Animation创建动画模板问题 [ 52%]

...ed (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/js/map/Node.js:113:30) at Handler.__proto.run (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:656:27) at TiledMap.__proto.initMap (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.tiledmap.js:307:27) at TiledMap.__proto.onTexture...

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

992. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 52%]

...d { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild...

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

993. laya.ui.Dialog [ 52%]

...中心线的距离(以像素为单位)。 Component  closeEffect : Handler 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 Dialog  closeHandler : Hand...

来源: laya_api 发布时间: 20170929

994. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 52%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; ``` `WorkerLoader.workerPath = ...

来源: Laya2.0_文档 发布时间: 20210715

995. 请大家帮助优化一下这个抛物线的代码 [ 52%]

...a.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stag...

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

996. 如何使用graphics绘画虚线 [ 52%]

...ar sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);

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

997. skin加载url资源不会刷新 [ 52%]

...);         Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handler.create(this, function (): void {             var t: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;);             var ape: Sprite = new Sprite();             ape.graphics.draw...

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

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

.../data.head_img:头像的url路径 head_img.loadImage(data.head_img, Laya.Handler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.g...

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

999. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 51%]

... at http://127.0.0.1:53462/game/code.js:97630:17     at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)     at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59)   查看了应该是微信自带的浏览器内核不支持Function.apply 2018-03-0...

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

1000. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 51%]

...。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不客气(*^__^*) ...... wuquanan • 2...

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