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

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

1. 滤镜-颜色滤镜 [ 100%]

..., // G 0, 0, 0, 0, 0, // B 0, 0, 0, 1, 0 // A ]; //创建一个颜色滤镜对象,红色 let redFilter = new ColorFilter(redMat); // 红色的猩猩 let redApe = this.createApe(); redApe.filters = [redFilter]; let firstChild = Laya.stage.getChildAt(0); redApe.x = firstChild.x + apeTexture.width; red...

来源: Laya2.0_示例 发布时间: 20250312

2. 加载-销毁Texture使用的图片资源 [ 94%]

...t.text = "销毁"; } else { //通过设置 visible=false ,来停止渲染对象 this.spBg.visible = false; this.aniFly.visible = false; //销毁 Texture 使用的图片资源 Laya.loader.clearTextureRes(PathBg); Laya.loader.clearTextureRes(PathFly); this.isDestroyed = true; this.txt.text = "恢复...

来源: Laya2.0_示例 发布时间: 20250312

3. 区块地图-滚动地图 [ 82%]

...andler = Laya.Handler, Browser = Laya.Browser; mX = mY = 0; // 创建地图对象 this.tiledMap = new TiledMap(); // 创建地图,适当的时候调用destory销毁地图 this.tiledMap.createMap("res/tiledMap/desert.json", new Rectangle(0, 0, Browser.width, Browser.height), new Handler(this, this....

来源: Laya2.0_示例 发布时间: 20250312

4. UI-Tree [ 69%]

...ox = Laya.Box, Clip = Laya.Clip, Label = Laya.Label; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x...

来源: Laya2.0_示例 发布时间: 20250312

5. UI-RefreshList [ 61%]

... /**展开的单元格索引ID */ this.itemOpenId=-1; /**展开的单元格对象 */ this.openedItem = null; /** 记录模拟数据的红点状态 */ this.redHotStatus =[]; /** 纪录鼠标按下状态,true为已按下,用于状态判断 */ this.mouseDown=false; /** 初始化场景 * */ /** 关...

来源: Laya2.0_示例 发布时间: 20250312