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

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

211. 请教LayaAir 2.2.0 改了哪些有关mask的代码 [ 38%]

...导致的显存增长。修复了使用scrollRect以后,一分钟左右clip失效一次导致的闪的问题。修复了九宫格加mask不显示的bug   我们把游戏引擎代码升级到2.2.0 , pc浏览器正常, 在手机容器中运行我们的游戏第一次加载时使用mask显示黑...

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

212. 动画-新版骨骼动画 [ 34%]

...).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChi...

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

213. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...recision mediump float; #endif #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, normalize(u_gradientDirection)) * 0.5 + 0.5; // 混合渐变颜色 vec4 gradientColor = mi...

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

214. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...em Data 可以提供每个item的简单数据。 Layout 参考布局容器 Clipping 是否开启剪裁。开启后,超出容器尺寸的内容将会被隐藏。 Selection 参考Selection支持 Scoller 参考滚动支持 一、 管理列表内容 运行时,可以直接通过addChild/removeChild...

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

215. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 30%]

...ate(); //动作名称 state.name = "run"; //动作播放起始时间 state.clipStart = 40 / 150; //动作播放结束时间 state.clipEnd = 70 / 150; //设置动作 state.clip = animator.getDefaultState().clip; //为动画组件添加一个动作状态 animator.getControllerLayer(0).addState(state);...

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

216. laya.ui.UIComponent_API3.0 [ 29%]

...ze > 组件构造函数 Hierarchy Sprite UIComponent Box ISelect Button Clip ColorPicker Label Image Slider ScrollBar ComboBox ProgressBar TipManager OpenDataContextView Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name ...

来源: Laya3.0_api 发布时间: 20231115

217. laya.ui.Image_API3.0 [ 29%]

...ge 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.png",其他UI组件均不支持异步加载。 example 以下示例代码,创建了一个新的 Image 实例,设置了它的皮肤、位...

来源: Laya3.0_api 发布时间: 20231115

218. 自定义2D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...color 颜色 Sprite2DFrag.glsl u_colorAdd 颜色叠加 Sprite2DFrag.glsl u_clipMatPos 裁剪位置 Sprite2DVertex.glsl u_clipMatDir 裁剪方向 Sprite2DVertex.glsl u_blurInfo 模糊信息 Sprite2DFrag.glsl 四、attributeMap attributeMap由一个个的attribute组成。attribute主要包括了基...

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

219. laya.ui.WXOpenDataViewer_API3.0 [ 25%]

...鼠标提示 btn1.toolTip = showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void...

来源: Laya3.0_api 发布时间: 20231102

220. laya.ui.ScaleBox_API3.0 [ 25%]

...鼠标提示 btn1.toolTip = showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void...

来源: Laya3.0_api 发布时间: 20231115