大约有 1,012 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0069 秒)
...; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else i...
来源: Laya_社区 发布时间: 20171228
...参数index是选中项的下标 // _proto_.onSelect = function(index){ // console.log("index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的...
来源: Laya_社区 发布时间: 20170805
...下. 例如: a.ts module proto{ export function msg1(){ console.log("msg1"); } } b.ts module proto{ export function msg2(){ console.log("msg2"); } } 然后再main.ts里面. function dispatchMsg(name: string){ let fun = proto[name]; fun(); } ...
来源: Laya_社区 发布时间: 20190604
...addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 设置每个特效宽高都为80 * 80 然后一...
来源: Laya_社区 发布时间: 20170627
...oData:any ) { this._publicSpaceData = publicSpaceInfoData; console.log( this._publicSpaceData.icon ); this.bg.loadImage( "res/atlas/gamewindow/" + this._publicSpaceData.icon,0,0,0,0, new Laya.Handler(this, this.imgLoaded) ); this.addChild( this.bg ); this.addChild( ...
来源: Laya_社区 发布时间: 20170923
...is,this.showMyfamMenu); _proto.showMyfamMenu = function(){ console.log(1) if(!this.famlilyMune.isActive){ // //Laya缓动动画——操作对新-属性列表-执行时间-动画效果-回调 Laya.Tween.to(this.famlilyMune,{rotation:0},...
来源: Laya_社区 发布时间: 20170301
...e","100"); var testReadV:string = Laya.LocalStorage.getItem("ceshiValue"); console.log("testReadV = " + testReadV); 如此行代码,测试下来testReadV==undefined 这里我看了适配层,不知是怎么回事会导致读取不到或者读取时出现乱码 在laya.bkadpter.js的 var LocalStor...
来源: Laya_社区 发布时间: 20181030
...oder 赞同来自: 获取触发事件我摸索出来了 onMouseDown(e){ console.log("mouseDown "+e.target.name); } onMouseUp(e){ console.log("mouseup"); } 2018-10-29 0 0 分享 微博 QZONE 微信 coder 赞同来自: 可是 https://layaair.ldc.layabox.com/api 实在没有对js有什么描述,...
来源: Laya_社区 发布时间: 20181029
...ize(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.window.sharedCanvas.width = Laya.stage.design...
来源: Laya_社区 发布时间: 20200618
...+) { Laya.timer.callLater(this, onCallLater); } } function onCallLater() { console.log("onCallLater triggered"); var text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.s...
来源: Laya_示例 发布时间: 20251209