大约有 573 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(347) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
... 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
...重复加载图片,走不到else里面,if的判断是否应该改为 !this._data if (!data._source){ this._data=data; this.event(/*laya.events.Event.PROGRESS*/"progress",0.5); ...
来源: Laya_社区 发布时间: 20190402
...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
...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
...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
...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
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
...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
...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
...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