-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from Yusuke57/add-preview-attribute
Add: PreviewAttribute
- Loading branch information
Showing
5 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
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
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
13 changes: 13 additions & 0 deletions
13
Alchemy/Assets/Alchemy/Samples~/Samples/Scripts/Decorations/PreviewSample.cs
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,13 @@ | ||
using UnityEngine; | ||
using Alchemy.Inspector; | ||
|
||
namespace Alchemy.Samples | ||
{ | ||
public class PreviewSample : MonoBehaviour | ||
{ | ||
[Preview] public Sprite foo; | ||
[Preview] public Texture bar; | ||
[Preview] public Material baz; | ||
[Preview] public GameObject qux; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Alchemy/Assets/Alchemy/Samples~/Samples/Scripts/Decorations/PreviewSample.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.