大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
...etHeightOfOneU():Number { if(this.U<=0) return 0; return this.cab.height/this.U; } private function setCurrentCabinet(ev:MouseEvent):void ...
来源: Laya_社区 发布时间: 20180202
...; } private updateLightByTime(progress: number): void { let intensity = 0; if (progress < 0.125) { intensity = 0.2; } else if (progress < 0.375) { const t = (progress - 0.125) / 0.25; intensity = 0.2 + t * 0.8; } else if (progress < 0.708) { intensity = 1.0; } else if (progress < 0.833) ...
来源: Laya3.0_文档 发布时间: 20251010
...a.Sprite>(); } /** * 实例 */ public static getInstance(): ColorTool { if (ColorTool.instance == null) { ColorTool.instance = new ColorTool(); } return ColorTool.instance; } /** * 添加颜色改变对象 * @param target */ public addColorTarget(target: Laya.Sprite): void { this.targets.push(t...
来源: Laya_社区 发布时间: 20180930
...owner.on("keydown", this, (event: KeyboardEvent) => { if (event.ctrlKey && event.key === "c") { event.preventDefault(); } if (event.ctrlKey && event.key === "v") { event.preventDe...
来源: Laya_社区 发布时间: 20251115
...tage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bgColor = "#ffffff"; if (Browser.onMiniGame) { Laya.timer.once(1000, this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.stage.height; //主域往子域透传消...
来源: Laya_社区 发布时间: 20180525
...ldren); var item = this.getChildAt(i); if(item instanceof Item) { item.removeSelf(); item.visible = true; Pool.recover("item", item); item.graphics.clear(); ...
来源: Laya_社区 发布时间: 20170113
...享 微博 QZONE 微信 nate(杨纯) 赞同来自: 因为你是闹闹啊 if (tmpDat instanceof Laya.SpineTemplet) { let obj: object = tmpDat["_textures"]; for (let key in obj) { if (obj.hasOwnProperty(key)) { let texture = obj[key] as L...
来源: Laya_社区 发布时间: 20240429
... 1 个回复 Laya_XS 赞同来自: var nMem = conchConfig.getTotalMem(); if (nMem <= 524288) { conchConfig.atlasNum = 10; conchConfig.maxTextureMemSize = 84 * 1024 * 1024;//图集内存上限 } else if (nMem > 524288 && nMem <= 1048576) { conchConfig.atlasNum = 16; conchConfig.maxTe...
来源: Laya_社区 发布时间: 20170322
...Update(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if(this.isTwoTouch){ return; ...
来源: Laya_社区 发布时间: 20190531
...umber = 0):Number { /*[DISABLE-ADD-VARIABLE-DEFAULT-VALUE]*/ var s:Number; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (!a || (c > 0 && a < c) || (c < 0 && a < -c)) { a = c; s = p / 4; } else s = p / PI2 * Math.asin(c / a); return (a * Ma...
来源: Laya_社区 发布时间: 20180104