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

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

1. 计时器-延迟执行 [ 100%]

...unction setup() { var vGap = 100; button1 = createButton("点我3秒之后 alpha - 0.5"); button1.x = (Laya.stage.width - button1.width) / 2; button1.y = (Laya.stage.height - button1.height - vGap) / 2; Laya.stage.addChild(button1); button1.on(Event.CLICK, this, onDecreaseAlpha1); button2 = createBu...

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

2. 其他引擎的Demo-Example_23 [ 98%]

...e.addChild(laser); frequency *= 0.9; } for (var i = 0; i 60 * 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; constructor() { Laya.init(this.viewWidth, this.viewHeight, WebGL); Laya.stage...

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

3. 输入设备-指南针 [ 97%]

... new Sprite(); Laya.stage.addChild(directionIndicator); directionIndicator.alpha = 0.8; directionIndicator.graphics.drawCircle(0, 0, 70, "#343434"); directionIndicator.graphics.drawLine(-40, 0, 40, 0, "#FFFFFF", 3); directionIndicator.graphics.drawLine(0, -40, 0, 40, "#FFFFFF", 3); directionIndicato...

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

4. 缓动-时间线 [ 96%]

...,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, scaleY:0.2, alpha:0.1},2000,null,0) .addLabel("turnUp",0).to(target,{x:100, y:100, scaleX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,tr...

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

5. 材质-PBRStandard材质 [ 76%]

...essSource = Laya.PBRStandardMaterial.SmoothnessSource_MetallicGlossTexture_Alpha; var barrel = scene.getChildByName("Wooden_Barrel"); var barrel1 = scene.getChildByName("Wooden_Barrel (1)"); var barrel2 = scene.getChildByName("Wooden_Barrel (2)"); var barrel3 = scene.getChildByName("Wooden_Barrel (3...

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

6. Sprite-新手引导 [ 72%]

...,含透明度,可见游戏背景 var maskArea = new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interaction...

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