大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0049 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...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
...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
...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
...执行区域到底指代的什么?调用这个方法的时候会传一个number???我把这个clear方法放到了一个鼠标事件监听函数里面的,loop方法在监听函数外面,我监听事件里面调用clear方法来关闭loop方法可行吗?因为监听函数里面也有一个thi...
来源: Laya_社区 发布时间: 20180505
...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
...打开调试面板。 开启debug模式后 1.编译代码将增加int,uint,Number,String的类型判断,都将被翻译成if(!__DEBUGTYPE__(判断对象,判断类型))debugger,如果检测对象非指定类型,即会中断程序运行,并在检测到问题的代码处自动断点。 2.编译...
来源: Laya_社区 发布时间: 20151203
...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
...s@<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
...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
...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