Permalink
Browse files

Refined.

  • Loading branch information...
1 parent ef3abd8 commit 94c3e1260eab7a8988fd02cf08d7d4d1c1294cdb 高橋 啓治郎 committed Oct 14, 2011
View
BIN Assets/Main.unity
Binary file not shown.
View
2 Assets/Particle.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 1
+guid: 2c41c17855b1748d19a8850c86ba72a6
View
BIN Assets/Particle/Star.mat
Binary file not shown.
View
2 Assets/Particle/Star.mat.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 1
+guid: b02ebf781926b4da989ffbe8ac6397b4
View
BIN Assets/Particle/Star.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
27 Assets/Particle/Star.png.meta
@@ -0,0 +1,27 @@
+fileFormatVersion: 1
+guid: 9ffac75b6f8104bf49799ab4f88a44b4
+TextureImporter:
+ importerVersion: 1
+ maxTextureSize: 1024
+ textureFormat: -1
+ grayscaleToAlpha: 0
+ npotScale: 1
+ generateCubemap: 0
+ isReadable: 0
+ mipmaps:
+ generation: 1
+ correctGamma: 0
+ border: 0
+ filter: 0
+ fadeout: 0
+ fadeoutStart: 1
+ fadeoutEnd: 3
+ bumpmap:
+ generation: 0
+ bumpyness: 0.25
+ filter: 0
+ textureSettings:
+ filterMode: -1
+ anisoLevel: -1
+ mipmapBias: -1
+ wrapMode: -1
View
12 Assets/Plugins/iOS/Screenshot.mm
@@ -4,12 +4,14 @@
extern "C" void _ScreenshotWriteToAlbum(const char* path) {
UIImage *image = [UIImage imageWithContentsOfFile:[NSString stringWithUTF8String:path]];
- ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
- NSMutableDictionary *metadata = [[NSMutableDictionary alloc] init];
+ ALAssetsLibrary *library = [[[ALAssetsLibrary alloc] init] autorelease];
+ NSMutableDictionary *metadata = [[[NSMutableDictionary alloc] init] autorelease];
[library writeImageToSavedPhotosAlbum:image.CGImage metadata:metadata completionBlock:^(NSURL *assetURL, NSError *error) {
- if (error) NSLog(@"Screenshot error - %@", error);
- [metadata release];
- [library release];
+ if (error) {
+ NSLog(@"Screenshot error - %@", error);
+ } else {
+ NSLog(@"Screenshot taken - %@", assetURL);
+ }
}];
}
View
8 Assets/Tester.js
@@ -1,7 +1,9 @@
#pragma strict
+function Update() {
+ if (Input.GetMouseButtonDown(0)) Screenshot.Capture();
+}
+
function OnGUI() {
- if (GUI.Button(Rect(0, 0, Screen.width / 2, 50), "Screenshot")) {
- Screenshot.Capture();
- }
+ GUI.Label(Rect(0, 0, Screen.width, Screen.height), "Tap screen to take a screenshot.");
}
View
BIN Library/ProjectSettings.asset
Binary file not shown.
View
2 README.md
@@ -1,3 +1,3 @@
### ビルドする際の注意
-ビルドする前に Xcode 上でフレームワークとして AssetsLibrary を追加する必要があります。
+ビルドする前に Xcode 上でフレームワークとして AssetsLibrary.framework を追加する必要があります。

0 comments on commit 94c3e12

Please sign in to comment.