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

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

1. Sprite-新手引导 [ 100%]

...stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //设置叠加模式 interactionArea.blendMode = "destination-out"; guideContainer.addChild(interactionArea); hitArea = new...

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

2. 鼠标交互-滑动 [ 96%]

...N, this, onMouseDown); Laya.stage.addChild(button); //左侧临界点设为圆形初始位置 beginPosition = button.x; //右侧临界点设置 endPosition = beginPosition + TrackLength; } function drawTrack() { var graph = new Sprite(); Laya.stage.graphics.drawLine( beginPosition, Laya.stage.height...

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