大约有 513 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0067 秒)
...问是什么问题? private mouseMove(state: Laya.RenderState):void{ // console.log(mX + "移动"); // console.log(this.lastMouseX + "按下"); let mX:number = Laya.stage.mouseX; let mY:number = Laya.stage.mouseY; let vec:Laya.Vector3 ; if(this.isDown){ if(this.lastMouseX - mX > 0) { vec = new ...
来源: Laya_社区 发布时间: 20180113
...e.runNodeScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的...
来源: Laya3.0_文档 发布时间: 20251010
...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
...确实会把该符号识别为普通字符串。 这点我们可以通过console.log看出来。 当我们直接在代码里面定义一个 var a = xxx\nyyy 的时候,log输出是这样的: xxx yyy 而当我们从http请求拿到一个字符串 var b = xxx\nyyy 的时候,log输出是这样的...
来源: Laya_社区 发布时间: 20180722
...rigidBody.mass = 10; this.arr.push(box); console.log("position = ",box.transform.position); if (index == 1) { Laya.timer.once(1000,this,()=>{ this.setAngle(); })...
来源: Laya_社区 发布时间: 20201120
...。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分...
来源: Laya2.0_文档 发布时间: 20210715
...3'>HTML文本</span>"; html += "</div>" p.innerHTML = html; console.log(p.contextWidth); //0 p.frameOnce(2,this,function(){ console.log(p.contextWidth); //0 }) } function showExternalHTML() { var p = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "../../res/html/test.html";...
来源: Laya_社区 发布时间: 20170314
...; .............................................. 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
... super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress &...
来源: Laya_社区 发布时间: 20170327
...ld(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; console.log("SHOW"); dialog.show(); Laya.timer.once(3000, this, function () { console.log("SHOW"); dialog.show(); }); } })();http://layaair.ldc.layabox.com/demo/?UI_Dialog 直接到示例下跑一跑就知道了... @cuixueyin...
来源: Laya_社区 发布时间: 20170303