-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using UnityEditor; | ||
using UnityEngine; | ||
using UnityEditor.SceneManagement; | ||
|
||
[InitializeOnLoad] | ||
public class AutoSave | ||
{ | ||
// Static constructor that gets called when unity fires up. | ||
static AutoSave() | ||
{ | ||
EditorApplication.playModeStateChanged += (PlayModeStateChange state) => { | ||
// If we're about to run the scene... | ||
if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying) | ||
{ | ||
// Save the scene and the assets. | ||
Debug.Log("Auto-saving all open scenes... " + state); | ||
EditorSceneManager.SaveOpenScenes(); | ||
AssetDatabase.SaveAssets(); | ||
} | ||
}; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class Init : MonoBehaviour | ||
{ | ||
public int displays = 3; | ||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
Display.displays[1].Activate(); | ||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!84 &8400000 | ||
RenderTexture: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_Name: MaiMaiCam | ||
m_ImageContentsHash: | ||
serializedVersion: 2 | ||
Hash: 00000000000000000000000000000000 | ||
m_ForcedFallbackFormat: 4 | ||
m_DownscaleFallback: 0 | ||
serializedVersion: 3 | ||
m_Width: 640 | ||
m_Height: 640 | ||
m_AntiAliasing: 1 | ||
m_MipCount: -1 | ||
m_DepthFormat: 2 | ||
m_ColorFormat: 8 | ||
m_MipMap: 0 | ||
m_GenerateMips: 1 | ||
m_SRGB: 0 | ||
m_UseDynamicScale: 0 | ||
m_BindMS: 0 | ||
m_EnableCompatibleFormat: 1 | ||
m_TextureSettings: | ||
serializedVersion: 2 | ||
m_FilterMode: 1 | ||
m_Aniso: 0 | ||
m_MipBias: 0 | ||
m_WrapU: 1 | ||
m_WrapV: 1 | ||
m_WrapW: 1 | ||
m_Dimension: 2 | ||
m_VolumeDepth: 1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!84 &8400000 | ||
RenderTexture: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_Name: MaiMaiCam1P | ||
m_ImageContentsHash: | ||
serializedVersion: 2 | ||
Hash: 00000000000000000000000000000000 | ||
m_ForcedFallbackFormat: 4 | ||
m_DownscaleFallback: 0 | ||
serializedVersion: 3 | ||
m_Width: 640 | ||
m_Height: 640 | ||
m_AntiAliasing: 1 | ||
m_MipCount: -1 | ||
m_DepthFormat: 2 | ||
m_ColorFormat: 8 | ||
m_MipMap: 0 | ||
m_GenerateMips: 1 | ||
m_SRGB: 0 | ||
m_UseDynamicScale: 0 | ||
m_BindMS: 0 | ||
m_EnableCompatibleFormat: 1 | ||
m_TextureSettings: | ||
serializedVersion: 2 | ||
m_FilterMode: 1 | ||
m_Aniso: 0 | ||
m_MipBias: 0 | ||
m_WrapU: 1 | ||
m_WrapV: 1 | ||
m_WrapW: 1 | ||
m_Dimension: 2 | ||
m_VolumeDepth: 1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!21 &2100000 | ||
Material: | ||
serializedVersion: 6 | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_Name: MaiMaiCam | ||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} | ||
m_ShaderKeywords: | ||
m_LightmapFlags: 4 | ||
m_EnableInstancingVariants: 0 | ||
m_DoubleSidedGI: 0 | ||
m_CustomRenderQueue: -1 | ||
stringTagMap: {} | ||
disabledShaderPasses: [] | ||
m_SavedProperties: | ||
serializedVersion: 3 | ||
m_TexEnvs: | ||
- _BumpMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailAlbedoMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailMask: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailNormalMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _EmissionMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _MainTex: | ||
m_Texture: {fileID: 8400000, guid: 82558dc4089d12d4cac95fc1c5d5542b, type: 2} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _MetallicGlossMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _OcclusionMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _ParallaxMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
m_Floats: | ||
- _BumpScale: 1 | ||
- _Cutoff: 0.5 | ||
- _DetailNormalMapScale: 1 | ||
- _DstBlend: 0 | ||
- _GlossMapScale: 1 | ||
- _Glossiness: 0.5 | ||
- _GlossyReflections: 1 | ||
- _Metallic: 0 | ||
- _Mode: 0 | ||
- _OcclusionStrength: 1 | ||
- _Parallax: 0.02 | ||
- _SmoothnessTextureChannel: 0 | ||
- _SpecularHighlights: 1 | ||
- _SrcBlend: 1 | ||
- _UVSec: 0 | ||
- _ZWrite: 1 | ||
m_Colors: | ||
- _Color: {r: 1, g: 1, b: 1, a: 1} | ||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.