From 2fcb5fe8690e28d4761cbc19f89137364dadc56d Mon Sep 17 00:00:00 2001 From: bozmir Date: Thu, 26 Sep 2024 17:15:47 +0200 Subject: [PATCH] added event for downloadsnapshotcomplete and updated version --- CHANGELOG.md | 2 +- Runtime/Scripts/Snapshots.cs | 4 +++- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b135c0d..cf371f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.1] - 2024-09-23 +## [2.0.0] - 2024-09-23 ### Added diff --git a/Runtime/Scripts/Snapshots.cs b/Runtime/Scripts/Snapshots.cs index d05b1e1..43ae669 100644 --- a/Runtime/Scripts/Snapshots.cs +++ b/Runtime/Scripts/Snapshots.cs @@ -46,6 +46,8 @@ public class Snapshots : MonoBehaviour [SerializeField] private SnapshotFileType fileType = SnapshotFileType.png; [SerializeField] private LayerMask snapshotLayers; + public UnityEvent DownloadSnapshotComplete = new(); + public int Width { get => width; @@ -108,7 +110,7 @@ public void TakeSnapshot() public void OnSnapshotDownloadComplete(string message) { - //Debug.Log("File download complete: " + message); + DownloadSnapshotComplete.Invoke(message); } private string DetermineSaveLocation() diff --git a/package.json b/package.json index 31af96a..0c1b277 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "eu.netherlands3d.snapshots", "displayName": "Netherlands3D - Snapshots", - "version": "1.0.1", + "version": "2.0.0", "unity": "2022.2", "description": "This package provides the means to do screen captures / snapshots for Netherlands3D", "keywords": [