-
-
Notifications
You must be signed in to change notification settings - Fork 815
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Demo: Add transition blur button & dialog with captured image.
- Loading branch information
Showing
8 changed files
with
20,351 additions
and
10,952 deletions.
There are no files selected for viewing
30,229 changes: 19,285 additions & 10,944 deletions
30,229
Assets/UIEffect/Demo/Demo - UIEffect.unity
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
using System.Collections; | ||
|
||
public class UIEffectDialogDemo : MonoBehaviour { | ||
|
||
public void Open() | ||
{ | ||
gameObject.SetActive(true); | ||
GetComponent<Animator>().SetTrigger("Open"); | ||
} | ||
|
||
public void Close() | ||
{ | ||
GetComponent<Animator>().SetTrigger("Close"); | ||
} | ||
|
||
public void Closed() | ||
{ | ||
gameObject.SetActive(false); | ||
} | ||
|
||
public void CaptureBackground() | ||
{ | ||
GetComponentInChildren<UIEffectCapturedImage>().Capture(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.