-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
135 changed files
with
4,397 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/audio.wav | ||
/background.png | ||
/Movie/ | ||
/.vs/ | ||
|
||
/[Ll]ibrary/ | ||
/[Tt]emp/ | ||
/[Oo]bj/ | ||
/[Bb]uild/ | ||
/[Bb]uilds/ | ||
/Assets/AssetStoreTools* | ||
|
||
# Autogenerated VS/MD solution and project files | ||
ExportedObj/ | ||
*.csproj | ||
*.unityproj | ||
*.sln | ||
*.suo | ||
*.tmp | ||
*.user | ||
*.userprefs | ||
*.pidb | ||
*.booproj | ||
*.svd | ||
|
||
|
||
# Unity3D generated meta files | ||
*.pidb.meta | ||
|
||
# Unity3D Generated File On Crash Reports | ||
sysinfo.txt | ||
|
||
# Builds | ||
*.apk | ||
*.unitypackage |
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,42 @@ | ||
using System.Collections; | ||
using System.IO; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
using UTJ.FrameCapturer; | ||
|
||
public class Controller : MonoBehaviour | ||
{ | ||
[SerializeField] | ||
MovieRecorder recorder; | ||
[SerializeField] | ||
RawImage image; | ||
|
||
IEnumerator Start() | ||
{ | ||
Screen.SetResolution(512, 512, false); | ||
|
||
if (File.Exists("background.png")) | ||
{ | ||
var imageWWW = new WWW("file://" + Application.dataPath + "/../background.png"); | ||
yield return imageWWW; | ||
image.texture = imageWWW.texture; | ||
} | ||
else if (File.Exists("background.jpg")) | ||
{ | ||
var imageWWW = new WWW("file://" + Application.dataPath + "/../background.jpg"); | ||
yield return imageWWW; | ||
image.texture = imageWWW.texture; | ||
} | ||
|
||
var audiosource = gameObject.AddComponent<AudioSource>(); | ||
var audioWWW = new WWW("file://" + Application.dataPath + "/../audio.wav"); | ||
yield return audioWWW; | ||
audiosource.clip = audioWWW.GetAudioClip(false); | ||
audiosource.Play(); | ||
|
||
recorder.BeginRecording(); | ||
yield return new WaitWhile(() => audiosource.isPlaying); | ||
recorder.EndRecording(); | ||
Application.Quit(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Oops, something went wrong.