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

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

301. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 78%]

...etHeightOfOneU():Number             {                 if(this.U<=0) return 0;                 return this.cab.height/this.U;             }                          private function setCurrentCabinet(ev:MouseEvent):void           ...

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

302. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 78%]

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

303. 颜色滤镜 差值变化 [ 78%]

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

304. [LayaAirIDE3]如何TextArea屏蔽掉右键的快捷菜单 [ 78%]

...owner.on("keydown", this, (event: KeyboardEvent) => {             if (event.ctrlKey && event.key === "c") {                 event.preventDefault();             }             if (event.ctrlKey && event.key === "v") {                 event.preventDe...

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

305. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 78%]

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

306. 关于Sprite回收 [ 78%]

...ldren);             var item = this.getChildAt(i);             if(item instanceof Item) {                 item.removeSelf();                 item.visible = true;                 Pool.recover("item", item);                 item.graphics.clear();        ...

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

307. [LayaAir3]Spine释放后,纹理不会被释放掉 [ 78%]

...享 微博 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

308. 有关于显存值的设置方法是在官网哪里? [ 78%]

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

309. 加载.lh文件 运行后黑屏 无法显示 [ 78%]

...Update(){ var touchCount = this._scene.input.touchCount();         if (1 === touchCount){             //判断是否为两指触控,撤去一根手指后引发的touchCount===1             if(this.isTwoTouch){                 return;         ...

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

310. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 78%]

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