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

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

341. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 70%]

... cw/w' + Laya.Browser.clientWidth + '/' + Laya.Browser.width;// + ', r=' + this.row + ',' + this.col;         txt.pos(0, 0);         Laya.stage.addChild(txt);     } } 代码很简单,什么都没有jsh就是获取宽高。只测试了Android、iPhone6两个手机,iPhone6就出了两个...

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

342. Laya.loader.load加载位图字体 [ 70%]

...重复加载图片,走不到else里面,if的判断是否应该改为 !this._data             if (!data._source){                 this._data=data;                 this.event(/*laya.events.Event.PROGRESS*/"progress",0.5);                 ...

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

343. 其他引擎的Demo-Example_04 [ 70%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.createText(); this.start(); } start() { const Sprite = Laya.Sprite; for (var i = 0; i w) { stars[i].x = stars[i].x - w; } else if (stars[i].x h) { stars[i].y = stars[i].y - h; } else if (stars[i].y = []; private w:number...

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

344. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 70%]

...spine.pos(100, 400); spine.load('res/spine/princess1.sk', new Laya.Handler(this, () => { Laya.stage.addChild(spine); spine.play(0, true); })); index.html  <html> <head> <meta charset='utf-8' /> <title>XXXXX</title> <meta name='viewport' content='width=device-widt...

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

345. 加载多个protobuf文件报错 [ 70%]

...type:Loader.TEXT } );        Laya.loader.load(assets, Handler.create(this, onAssetsLoaded));   首先确认下类型是为TEXT吗,如果这样写就是报如下错 Uncaught Error: Parse error at line 1: unexpected 'undefined'     at Parser.ProtoBuf.DotProto.ParserPrototype.parse (protobu...

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

346. 关于as版的Animation.createFrames()不能工作? [ 70%]

...ya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():void { Animation.createFrames(["war/h...

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

347. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 70%]

Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 this.loadHp(); Laya.timer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX ...

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

348. 文本-字数限制 [ 70%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1;...

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

349. 无限循环滚动列表 [ 70%]

...E 微信 189*****192 赞同来自: 他也是自己写的  监听滑动  this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 通过cell 距离 设置他的缩放比 MainPanel.prototype.doSpecialEffect = function () {         //change the scale according to the distance to the mi...

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

350. 用raycast选取实体,hitresult始终是false [ 69%]

...n.y:"+ray.direction.y+" ray.direction.z:"+ray.direction.z); //产生射线 this.camera.viewportPointToRay(point, ray);//从摄像机到鼠标点击位置生成射线 console.log("rayPoint222 pointx:"+ point.x+" pointy:"+point.y+ " ray.origin.x:"+ray.origin.x+ " ray.origin.y:"+ray.origin.y+ " ray.ori...

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