大约有 246 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0069 秒)
Laya_社区(145) Laya3.0_api(41) Laya2.0_文档(28) Laya3.0_文档(11) Laya2.0_api(6) laya_api(5) Laya_示例(5) Laya2.0_示例(5)
...).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_示例 发布时间: 20250223
...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_文档 发布时间: 20250214
...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
...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
...ge 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.png",其他UI组件均不支持异步加载。 example 以下示例代码,创建了一个新的 Image 实例,设置了它的皮肤、位...
来源: Laya3.0_api 发布时间: 20231115
...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_文档 发布时间: 20250214
...鼠标提示 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
...鼠标提示 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
...鼠标提示 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
...鼠标提示 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