大约有 33 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
... this.img.filters = [colorFilter]; //设置滤镜颜色 colorFilter.color(0.5, 0.5, 0.5, 1); //设置滤镜亮度 colorFilter.adjustBrightness(-50); //设置滤镜对比度 colorFilter.adjustContrast(8); //设置滤镜饱和度 colorFilter.adjustSaturation(30); //设置滤镜对比度 colorFilter.ad...
来源: Laya3.0_文档 发布时间: 20250826
...建不同类型的Mesh网格: //正方体 Laya.PrimitiveMesh.createBox(0.5, 0.5, 0.5); //球体 Laya.PrimitiveMesh.createSphere(0.25, 20, 20); //圆柱体 Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); //胶囊体 Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); //圆锥体 Laya.PrimitiveMesh.c...
来源: Laya3.0_文档 发布时间: 20251010
... 显示持续时长,注意此处单位为 毫秒 (ms)。 PositionX Float 0.5 图片中心点的水平位置百分比 (0.0 ~ 1.0)。0.5 为水平居中。 PositionY Float 0.3 图片中心点的垂直位置百分比 (0.0 ~ 1.0)。0.3 表示位于顶部向下 30% 的位置。 配置示例 [waterMark]...
来源: Laya3.0_文档 发布时间: 20251128
... float gradientFactor = dot(v_texcoord, normalize(u_gradientDirection)) * 0.5 + 0.5; // 混合渐变颜色 vec4 gradientColor = mix(u_gradientStartColor, u_gradientEndColor, gradientFactor); textureColor *= gradientColor; #ifdef LIGHT_AND_SHADOW lightAndShadow(textureColor); #endif textureColor = tr...
来源: Laya3.0_文档 发布时间: 20251120
...RuntimeScriptBase { onAwake(): void { //60帧后,图片的透明度变为0.5 Laya.timer.frameOnce(60, this, () => { this.Image.alpha = 0.5; }) } } 1.2 定时重复执行 (基于帧率) Laya.timer.frameLoop,定义如下: /** * 定时重复执行(基于帧率)。 * @param delay 间隔几帧(...
来源: Laya3.0_文档 发布时间: 20251010
...设置颜色、亮度、对比度、饱和度、色调 colorEffect2D.color(0.5, 0.5, 0.5, 1); colorEffect2D.adjustBrightness(30); colorEffect2D.adjustContrast(8); colorEffect2D.adjustSaturation(30); colorEffect2D.adjustHue(-15); } } 三、 变灰效果 变灰效果是变色效果的一种特殊用...
来源: Laya3.0_文档 发布时间: 20251010
...ild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方...
来源: Laya3.0_文档 发布时间: 20251010
...e(0); this.mArmature.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播放完成后,调用completeHandler继续播放下一个动画 this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); }); } private co...
来源: Laya3.0_文档 发布时间: 20251010
...4-1中,下落方块(3D刚体)从左至右的恢复系数分别为0、0.5、1。地板(静态碰撞器)的恢复系数为0.5。 (动图4-1) 注意,恢复系数的效果与碰撞的双方都有关系,例如,碰撞的一方恢复系数为0,那么不管另一方的恢复系数是多少...
来源: Laya3.0_文档 发布时间: 20251010
...轴心点 this.sprite.pivotY = this.sprite.height/2; this.sprite.anchorX = 0.5; //锚点:sprite的中心 this.sprite.anchorY = 0.5; this.sprite.scale(0.5, 0.5); //缩放大小 this.sprite.scaleX = 2; //x、y分别设置缩放 this.sprite.scaleY = 2; this.sprite.skew(5, 5); //倾斜度 this.sprite.sk...
来源: Laya3.0_文档 发布时间: 20251010