大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0147 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 duration:int — 花费的时间,单位毫秒。 ease:Function (default = null) — 缓动类型,默认为匀速运动。 complete:Handler (default = null) — 结束回调函数。 ...
来源: Laya2.0_api 发布时间: 20190513
...更新有点问题,有些注释和代码没对应上。 let scene3d = new Laya.Scene3D(); let outHitInfoAll = new Laya.HitResult(); scene3d.physicsSimulation.rayCastAll(this.ray, outHitInfoAll, depth); 2018-12-19 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20181219
...`javascript Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox = new Laya.Sprite(); for(var i=0;i (图1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所示,性能获得较大的提升,FPS达到到了60帧。 ```javascript //...省略其他代码... v...
来源: Laya2.0_文档 发布时间: 20210714
...(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this...
来源: Laya3.0_文档 发布时间: 20230303
...function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var W...
来源: Laya2.0_文档 发布时间: 20210714
...dulumCircleTarget").getChildByName("MoveBlockPivot") as Laya.Sprite3D; let newRot = new Laya.Quaternion(0, 0, 0, 0); Laya.Quaternion.createFromYawPitchRoll(0, 0* (Math.PI / 180), 0, newRot); this.pivot.transform.rotation = newRot; .............................................. if (e.keyCode == 97) {...
来源: Laya_社区 发布时间: 20171228
...叠 要回复问题请先登录 发起人 yaorao 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 红米K20pro 多个手指同时按下就会报这个错 object has in SimpleSingletonList IDE创建的UI 层级问题 分享:LayaAir下...
来源: Laya_社区 发布时间: 20180328
...is._ui.serverList.vScrollBarSkin = ""; this._ui.serverList.selectHandler = new Handler(this, this.onSelect); this._ui.serverList.renderHandler = new Handler(this, this.onUpdateItem); //this._ui.serverList.array = this._loadData.list; this._ui.serverList.array = data; 附件 : --> 2017-09-24 添...
来源: Laya_社区 发布时间: 20170924
... Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00"); var btn:Sprite = new Sprite(); btn.size(200, 100); btn.graphics.drawRect(0, 0, btn.width, btn.height, "#ff00ff"); Laya.stage.addChild(btn); btn.on(Event.MOUSE_DOWN, this, function():void { btn.filters = [new GlowFilter("#ff0f0f")]; } ); btn.o...
来源: Laya_社区 发布时间: 20181221
...age.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 200, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(sp); sp.on(Event.MOUSE_DOWN, thi...
来源: Laya_示例 发布时间: 20260303