大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0085 秒)
Laya_社区(3251) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(94) Laya3.0_文档(86) Laya2.0_api(9) laya_api(6)
....stage.screenMode = Laya.Stage.SCREEN_NONE; private animate(): void { this._position.x = Math.sin(this.scaleDelta += 0.01); this.layaMonkey3D.transform.position = this._position; this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this....
来源: Laya_社区 发布时间: 20180425
... list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); function onSelect(index) { alert("当前选择的索引:" + index); } 第一次点击时有事件响应: 再次点击(不要点击其它的列表)...
来源: Laya_社区 发布时间: 20180507
.../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler....
来源: Laya_示例 发布时间: 20241002
this.getStyle().setTranslateX(value)有错 this.getStyle().setTranslateX(value); 这个一直出错 大佬看看,很急! 附件 : --> 2019-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...
来源: Laya_社区 发布时间: 20190421
...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
...tclass.BKWebSocket var BKWebSocket=(function(){ function BKWebSocket(url){ this._socket=null; this.onopen=null; this.onmessage=null; this.onclose=null; this.onerror=null; this._socket=new BK.WebSocket(url); var _self; _self=this; this._socket.onClose=function (ws){ if (_self.onclose !=null){ _self.o...
来源: Laya_社区 发布时间: 20180328
...于这个,如果需要width和height, new window.Laya.Rectangle(0, 0, this.img_width, this.img_height, '#FF0000'), 然后设置sprite.hitArea = rect. 但是这个其实很弱。 首先,这个rect不会随着图片的旋转而旋转,所以要做精细的碰撞检测得自己写逻辑 kezhiy...
来源: Laya_社区 发布时间: 20180530
...Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Laya.HBox; private updateFont(value:number){ if(!this.hbox){ this.hbox = new Laya.HBox(); this.addChild...
来源: Laya_社区 发布时间: 20180615
...umber = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.frameWork); // 每 20 ms 执行一次 } private frameWork():void{ this.y = this.y0 + 10 * (this.n % 3); alert("move "); } }代码放在一个 Image 组件的 ...
来源: Laya_社区 发布时间: 20200203
...本:2.2.0beta1,ts_new 看代码 constructor(){ super(); this.worker = new Worker(WorkerLoader.workerPath); this.worker.onmessage = function(evt:any):void { //接收worker传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问...
来源: Laya_社区 发布时间: 20190802