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

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

1751. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 44%]

...e _agent:Laya.Sprite;    public startDrag(dragCom: Laya.Sprite, touchID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTexture(dragCom,Laya.SpriteConst.TEXTURE,bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this...

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

1752. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 44%]

...tion.x; disVector2.y = touch.position.y - touch2.position.y; var distance2:Number = Vector2.scalarLength(disVector2); //根据移动的距离进行缩放 _camera.transform.translate(new Vector3(0, 0, -0.01 * (distance2 - distance))); distance = distance2; } } else if (0 === touchCount){ _text.text =...

来源: Laya2.0_文档 发布时间: 20210715

1753. 内存释放问题 [ 44%]

...eNames.length; i < len; i++) { muduleName = moduleNames[i]; let curMem: number = Laya.Stat.currentMemorySize// >> 20; console.log("curM:", curMem); path = bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName); bigao.control.SkillControl.instance._skillView = null...

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

1754. laya.timer.clear这个定时器的回调函数到底怎么用啊?模拟器上不报错,真机运行会抱着个错 [ 44%]

...执行区域到底指代的什么?调用这个方法的时候会传一个number???我把这个clear方法放到了一个鼠标事件监听函数里面的,loop方法在监听函数外面,我监听事件里面调用clear方法来关闭loop方法可行吗?因为监听函数里面也有一个thi...

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

1755. laya.d3.core.MeshRenderer [ 44%]

...BaseMaterial> 获取浅拷贝材质列表。 BaseRender sortingFudge : Number排序矫正值。BaseRenderPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  MeshRenderer(owner:RenderableSprite3D) 创建一个新的 MeshRender 实例。 MeshRenderer  ...

来源: Laya2.0_api 发布时间: 20190513

1756. laya支持的发布模式有哪些? [ 44%]

...打开调试面板。 开启debug模式后 1.编译代码将增加int,uint,Number,String的类型判断,都将被翻译成if(!__DEBUGTYPE__(判断对象,判断类型))debugger,如果检测对象非指定类型,即会中断程序运行,并在检测到问题的代码处自动断点。   2.编译...

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

1757. 高级应用-渲染纹理 [ 44%]

...meshSprite: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D; for (var i: number = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat: Laya.StandardMaterial = meshSprite.meshRender.sharedMaterials[i] as Laya.StandardMaterial; mat.disableLight(); } } for (var i: number = 0; i < spir...

来源: Laya_示例 发布时间: 20260106

1758. 全局安装layaair2-cmd报错怎么办啊 [ 44%]

...s@&lt;3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. ...

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

1759. 缓动-简单的Tween [ 44%]

...gColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createCharacter("../../res/cartoonCharacters/2.pn...

来源: Laya_示例 发布时间: 20260106

1760. UI-Input [ 44%]

...omplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private...

来源: Laya_示例 发布时间: 20260106