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

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

671. 自定义Shader · LayaAir3.0文档 · LAYABOX [ 43%]

...rams(near, far, invert, 1 / far) 投影参数 Camera.glsl u_Viewport(x, y, width, height) 视口 Camera.glsl u_CameraDirection 相机方向 Camera.glsl u_CameraUp 相机上朝向 Camera.glsl u_CameraPos 相机位置 Camera.glsl u_ZBufferParams:1.0 - far / near, far / near, (near - far) / (near * f...

来源: Laya3.0_文档 发布时间: 20240926

672. 示例 骨骼动画换装 加不上点击事件 [ 43%]

...var mSkinList = ["goblin", "goblingirl"]; (function () { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory....

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

673. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 43%]

...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...

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

674. iOS9兼容bug,求指教 [ 42%]

...019-06-13 11:20:13.099 RBaoSANGuo_H5L1[1552:289925] =============onGLReady width=1080,height=1920 2019-06-13 11:20:13.099 RBaoSANGuo_H5L1[1552:289925] download thread num = 3 2019-06-13 11:20:13.250 RBaoSANGuo_H5L1[1552:289925] createOpenALSource current num=10 2019-06-13 11:20:13.251 RBaoSANGuo_H5L...

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

675. 资源加载 · LayaAir3.0文档 · LAYABOX [ 42%]

...去下载Meta(json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premu...

来源: Laya3.0_文档 发布时间: 20230728

676. Laya 绑定显示内容到骨骼动画 [ 41%]

...Laya.stage.addChild(this.__bind);         this.__bind.x=Laya.stage.width*0.5;         this.__bind.y=Laya.stage.height*0.5;          this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler.create(this,this.testLoadComplete));   }      private __bind:...

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

677. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 40%]

...= p.decode(); let texture:Laya.Texture2D = new Laya.Texture2D(544,960);//p.width,p.height this.texture = texture; this.refreshCamera(); //在U方向上使用WARPMODE_CLAMP // texture.format = Laya.TextureFormat.ASTC10x10 texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE...

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

678. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 40%]

...) | | `border-color:#ff0000;` | 边框颜色(仅div中使用) | | `width:100px;` | 宽度(仅div中使用) | | `height:100px;` | 高度(仅div中使用) | 下面的代码是运用的示例代码, ```html 使用 HTMLDivElement  组件 创建的 HTML文本 P标签,不需要...

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

679. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 39%]

...mg; img.skin = this.aaa.playerNameList[i].playerhandpoker[j].PokerDre; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1;  for (let x = 0;...

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

680. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 38%]

...h(asset); let img = sharp(file); let meta = await img.metadata(); if (meta.width < 200 && meta.height < 200) return "source"; //source是一个特殊的字符串,表示返回源文件。 else return await img.resize(AssetThumbnail.imageSize, AssetThumbnail.imageSize, { fit: "inside" ...

来源: Laya3.0_文档 发布时间: 20240918