Skip to content

Commit

Permalink
added event for downloadsnapshotcomplete and updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
bozmir committed Sep 26, 2024
1 parent d340a22 commit 2fcb5fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion Runtime/Scripts/Snapshots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public class Snapshots : MonoBehaviour
[SerializeField] private SnapshotFileType fileType = SnapshotFileType.png;
[SerializeField] private LayerMask snapshotLayers;

public UnityEvent<string> DownloadSnapshotComplete = new();

public int Width
{
get => width;
Expand Down Expand Up @@ -108,7 +110,7 @@ public void TakeSnapshot()

public void OnSnapshotDownloadComplete(string message)
{
//Debug.Log("File download complete: " + message);
DownloadSnapshotComplete.Invoke(message);
}

private string DetermineSaveLocation()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 2fcb5fe

Please sign in to comment.