• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0052 秒)

1431. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...时绘制线段(仅在按下时) 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

1432. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 39%]

...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

1433. 没有人尝试使用3d物理引擎么 [ 39%]

...; 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

1434. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...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

1435. 请教LayaAir 2.2.0 改了哪些有关mask的代码 [ 39%]

...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

1436. unity 通过laya 导出 灵异事件 [ 39%]

...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

1437. Laya.Pool用法 [ 38%]

...rotoPool;         static get instance(): ProtoPool {             if (this._instance == null) {                 this._instance = new ProtoPool();             }             return this._instance;         }     } } 2017-08-07 添加评论 免费帖 --> 分享 微博 ...

来源: Laya_社区 发布时间: 20170807

1438. /clang:-1: linker command failed with exit code 1 (use -v to see invocation) [ 38%]

...e 1 (use -v to see invocation) 相关的库都已经引入了,我的是Swift项目, 测试发现,关闭这里就不报错了     //conchRuntime 初始化ConchRuntime引擎     CGRect frame = UIScreen.mainScreen.bounds;     m_pConchRuntime = [[conchRuntime alloc]initWithView:m_pGLKView...

来源: Laya_社区 发布时间: 20190508

1439. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 38%]

...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

1440. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 38%]

....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