大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0052 秒)
...时绘制线段(仅在按下时) onMouseMove(evt: Laya.Event): void { if (!this.isDrawing || this.lastMousePos.length === 0) return; const x = evt.stageX - this.owner.x; const y = evt.stageY - this.owner.y; // 添加线段 this.line2DRender.addPoint(this.lastMousePos[0], this.lastMousePos[1], x,...
来源: Laya3.0_文档 发布时间: 20251010
...ate function onFrame():void { //如果创建对象时间为100帧间隔后 if(createTime>=100) { //每200帧间隔创建30个雪花 for(var i:int=0;i640+20||img1.scaleX(图2-1) 在一些特殊情况我们需要注意`Hanlder.create()`的使用方式,我们仔细看图2-1中的`Hanlder.create()...
来源: Laya2.0_文档 发布时间: 20210715
...; directionLight.specularColor=new Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor=new Vector3(1.6, 1.6, 1.6); directionLight.direction=new Vector3(1, -1, 0); //添加自定义模型 box=scene.addChild(new MeshSprite3D(new BoxMesh(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 0...
来源: Laya_社区 发布时间: 20170331
...Child(this.controller); } private onClipSwitchState(e: any = null): void { if (this.counter.isPlaying) { this.counter.stop(); this.currFrame = this.counter.index; this.controller.label = "播放"; } else { this.counter.play(); this.counter.index = this.currFrame; this.controller.label = "暂停"; } ...
来源: Laya3.0_文档 发布时间: 20251010
...1 at MeshQuadTexture.__proto.releaseMesh (file:///F:/Laya2Workspace/laya.feifan.bandarq2.0/bin/libs/laya.core.js:24421:13) at Context.__proto.flush (file:///F:/Laya2Workspace/laya.feifan.bandarq2.0/bin/libs/laya.core.js:10451:24) at Stage.__proto.render (file:///F:/Laya2Workspace/laya.feifan.b...
来源: Laya_社区 发布时间: 20191010
...yed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UnityEngine.Object.get_name () (at C:/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:189) n.a (UnityEngine.Mesh A_0, System.String A_1, System...
来源: Laya_社区 发布时间: 20201218
...rotoPool; static get instance(): ProtoPool { if (this._instance == null) { this._instance = new ProtoPool(); } return this._instance; } } } 2017-08-07 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20170807
...e 1 (use -v to see invocation) 相关的库都已经引入了,我的是Swift项目, 测试发现,关闭这里就不报错了 //conchRuntime 初始化ConchRuntime引擎 CGRect frame = UIScreen.mainScreen.bounds; m_pConchRuntime = [[conchRuntime alloc]initWithView:m_pGLKView...
来源: Laya_社区 发布时间: 20190508
...31*****785 赞同来自: 微信里面的Function这样定义:function (){if(arguments.length>0&&"return this"===arguments[arguments.length-1])return function(){return e}} Chrome和预览里面的Function这样定义:function Function() { [native code] } 2018-03-07 0 0 分享 微博 QZ...
来源: Laya_社区 发布时间: 20180302
....png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = wi...
来源: Laya3.0_文档 发布时间: 20230303