大约有 1,071 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
...; .............................................. 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
...下. 例如: 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
...cker); onChangeColor(colorPicker); } function onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } })();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export cl...
来源: Laya_示例 发布时间: 20251130
...e","100"); var testReadV:string = Laya.LocalStorage.getItem("ceshiValue"); console.log("testReadV = " + testReadV); 如此行代码,测试下来testReadV==undefined 这里我看了适配层,不知是怎么回事会导致读取不到或者读取时出现乱码 在laya.bkadpter.js的 var LocalStor...
来源: Laya_社区 发布时间: 20181030
...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
...orPicker); this.onChangeColor(colorPicker); } onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } } new UI_ColorPicker();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Lay...
来源: Laya2.0_示例 发布时间: 20251130
...is,this.showMyfamMenu); _proto.showMyfamMenu = function(){ console.log(1) if(!this.famlilyMune.isActive){ // //Laya缓动动画——操作对新-属性列表-执行时间-动画效果-回调 Laya.Tween.to(this.famlilyMune,{rotation:0},...
来源: Laya_社区 发布时间: 20170301
...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
...+) { 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_示例 发布时间: 20251130