├── Screenshot.jpg
├── TextShader.unitypackage
├── ProjectSettings
├── ProjectVersion.txt
├── ClusterInputManager.asset
├── NetworkManager.asset
├── XRSettings.asset
├── TimeManager.asset
├── EditorBuildSettings.asset
├── VFXManager.asset
├── AudioManager.asset
├── TagManager.asset
├── EditorSettings.asset
├── PresetManager.asset
├── UnityConnectSettings.asset
├── DynamicsManager.asset
├── Physics2DSettings.asset
├── NavMeshAreas.asset
├── GraphicsSettings.asset
├── QualitySettings.asset
├── InputManager.asset
└── ProjectSettings.asset
├── Assets
├── Packages
│ ├── ImageEffect
│ │ ├── TextShader
│ │ │ ├── 8x8font.png
│ │ │ ├── TextShader.mat.meta
│ │ │ ├── TextShader.shader.meta
│ │ │ ├── TextShader.cs.meta
│ │ │ ├── TextShader.mat
│ │ │ ├── 8x8font.png.meta
│ │ │ ├── TextShader.shader
│ │ │ └── TextShader.cs
│ │ └── TextShader.meta
│ ├── ImageEffect.meta
│ ├── ScreenUtil.meta
│ ├── ImageEffectBase.meta
│ ├── ImageEffectBase
│ │ ├── ImageEffectBase.mat.meta
│ │ ├── ImageEffectBase.shader.meta
│ │ ├── ImageEffectBase.cs.meta
│ │ ├── ImageEffectBase.shader
│ │ ├── ImageEffectBase.cs
│ │ └── ImageEffectBase.mat
│ └── ScreenUtil
│ │ ├── ScreenUtil.cs.meta
│ │ └── ScreenUtil.cs
├── Sample.unity.meta
├── Packages.meta
├── Sample.cs.meta
├── Sample.cs
└── Sample.unity
├── .gitignore
├── README.md
├── Packages
└── manifest.json
├── Logs
└── Packages-Update.log
└── LICENSE
/Screenshot.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XJINE/Unity_TextShader/HEAD/Screenshot.jpg
--------------------------------------------------------------------------------
/TextShader.unitypackage:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XJINE/Unity_TextShader/HEAD/TextShader.unitypackage
--------------------------------------------------------------------------------
/ProjectSettings/ProjectVersion.txt:
--------------------------------------------------------------------------------
1 | m_EditorVersion: 2019.1.10f1
2 | m_EditorVersionWithRevision: 2019.1.10f1 (f007ed779b7a)
3 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/8x8font.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XJINE/Unity_TextShader/HEAD/Assets/Packages/ImageEffect/TextShader/8x8font.png
--------------------------------------------------------------------------------
/ProjectSettings/ClusterInputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!236 &1
4 | ClusterInputManager:
5 | m_ObjectHideFlags: 0
6 | m_Inputs: []
7 |
--------------------------------------------------------------------------------
/Assets/Sample.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dc81662e63c71c743bc669e64dffa328
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/ProjectSettings/NetworkManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!149 &1
4 | NetworkManager:
5 | m_ObjectHideFlags: 0
6 | m_DebugLevel: 0
7 | m_Sendrate: 15
8 | m_AssetToPrefab: {}
9 |
--------------------------------------------------------------------------------
/Assets/Packages.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9a394006a1b0a5e4185821280cb7ed71
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1e266849e18fc2d44a795230c73e7bbf
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Packages/ScreenUtil.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 96374f20f06df2c48b6ad7762c90e5fb
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ProjectSettings/XRSettings.asset:
--------------------------------------------------------------------------------
1 | {
2 | "m_SettingKeys": [
3 | "VR Device Disabled",
4 | "VR Device User Alert"
5 | ],
6 | "m_SettingValues": [
7 | "False",
8 | "False"
9 | ]
10 | }
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffectBase.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 86d846a242e69cb4e887f94f82cfcab1
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: cf07c28ec8e305f4b8394c239ae5a56d
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/TextShader.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5b7990a73cabd7a49bf273b25017490d
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 2100000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffectBase/ImageEffectBase.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a6ef705d54e028a44821b6a5996b2571
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 2100000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ProjectSettings/TimeManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!5 &1
4 | TimeManager:
5 | m_ObjectHideFlags: 0
6 | Fixed Timestep: 0.02
7 | Maximum Allowed Timestep: 0.1
8 | m_TimeScale: 1
9 | Maximum Particle Timestep: 0.03
10 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/TextShader.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f245497aab3106344a894569ece2be22
3 | ShaderImporter:
4 | externalObjects: {}
5 | defaultTextures: []
6 | nonModifiableTextures: []
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffectBase/ImageEffectBase.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3f1856e1833bed241ade4708d4c5cc6c
3 | ShaderImporter:
4 | externalObjects: {}
5 | defaultTextures: []
6 | nonModifiableTextures: []
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/Sample.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 73669890955e66443bea6d689f0a5bbd
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ProjectSettings/EditorBuildSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1045 &1
4 | EditorBuildSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Scenes:
8 | - enabled: 1
9 | path: Assets/Sample.unity
10 | guid: dc81662e63c71c743bc669e64dffa328
11 | m_configObjects: {}
12 |
--------------------------------------------------------------------------------
/Assets/Packages/ScreenUtil/ScreenUtil.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e8155523faa153246b52f0a7d7298b65
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ProjectSettings/VFXManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!937362698 &1
4 | VFXManager:
5 | m_ObjectHideFlags: 0
6 | m_IndirectShader: {fileID: 0}
7 | m_CopyBufferShader: {fileID: 0}
8 | m_SortShader: {fileID: 0}
9 | m_RenderPipeSettingsPath:
10 | m_FixedTimeStep: 0.016666668
11 | m_MaxDeltaTime: 0.05
12 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffectBase/ImageEffectBase.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9c99cdcd90dee9b4eb69b3b89e4dfac5
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences:
7 | - material: {fileID: 2100000, guid: a6ef705d54e028a44821b6a5996b2571, type: 2}
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/TextShader.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c9718967ecdae8e47a01d2c0712bd897
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences:
7 | - material: {fileID: 2100000, guid: 5b7990a73cabd7a49bf273b25017490d, type: 2}
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ProjectSettings/AudioManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!11 &1
4 | AudioManager:
5 | m_ObjectHideFlags: 0
6 | m_Volume: 1
7 | Rolloff Scale: 1
8 | Doppler Factor: 1
9 | Default Speaker Mode: 2
10 | m_SampleRate: 0
11 | m_DSPBufferSize: 1024
12 | m_VirtualVoiceCount: 512
13 | m_RealVoiceCount: 32
14 | m_SpatializerPlugin:
15 | m_AmbisonicDecoderPlugin:
16 | m_DisableAudio: 0
17 | m_VirtualizeEffects: 1
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | [Ll]ibrary/
2 | [Tt]emp/
3 | [Oo]bj/
4 | [Bb]uild/
5 | [Bb]uilds/
6 | Assets/AssetStoreTools*
7 |
8 | # Visual Studio cache directory
9 | .vs/
10 |
11 | # Autogenerated VS/MD/Consulo solution and project files
12 | ExportedObj/
13 | .consulo/
14 | *.csproj
15 | *.unityproj
16 | *.sln
17 | *.suo
18 | *.tmp
19 | *.user
20 | *.userprefs
21 | *.pidb
22 | *.booproj
23 | *.svd
24 | *.pdb
25 | *.opendb
26 |
27 | # Unity3D generated meta files
28 | *.pidb.meta
29 | *.pdb.meta
30 |
31 | # Unity3D Generated File On Crash Reports
32 | sysinfo.txt
33 |
34 | # Builds
35 | *.apk
--------------------------------------------------------------------------------
/ProjectSettings/TagManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!78 &1
4 | TagManager:
5 | serializedVersion: 2
6 | tags: []
7 | layers:
8 | - Default
9 | - TransparentFX
10 | - Ignore Raycast
11 | -
12 | - Water
13 | - UI
14 | -
15 | -
16 | - PostProcessing
17 | -
18 | -
19 | -
20 | -
21 | -
22 | -
23 | -
24 | -
25 | -
26 | -
27 | -
28 | -
29 | -
30 | -
31 | -
32 | -
33 | -
34 | -
35 | -
36 | -
37 | -
38 | -
39 | -
40 | m_SortingLayers:
41 | - name: Default
42 | uniqueID: 0
43 | locked: 0
44 |
--------------------------------------------------------------------------------
/ProjectSettings/EditorSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!159 &1
4 | EditorSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 7
7 | m_ExternalVersionControlSupport: Visible Meta Files
8 | m_SerializationMode: 2
9 | m_LineEndingsForNewScripts: 2
10 | m_DefaultBehaviorMode: 0
11 | m_SpritePackerMode: 0
12 | m_SpritePackerPaddingPower: 1
13 | m_EtcTextureCompressorBehavior: 1
14 | m_EtcTextureFastCompressor: 1
15 | m_EtcTextureNormalCompressor: 2
16 | m_EtcTextureBestCompressor: 4
17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd
18 | m_ProjectGenerationRootNamespace:
19 | m_UserGeneratedProjectSuffix:
20 | m_CollabEditorSettings:
21 | inProgressEnabled: 1
22 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffectBase/ImageEffectBase.shader:
--------------------------------------------------------------------------------
1 | Shader "ImageEffect/Base"
2 | {
3 | Properties
4 | {
5 | [HideInInspector]
6 | _MainTex("Texture", 2D) = "white" {}
7 | }
8 | SubShader
9 | {
10 | Pass
11 | {
12 | CGPROGRAM
13 |
14 | #include "UnityCG.cginc"
15 | #pragma vertex vert_img
16 | #pragma fragment frag
17 |
18 | sampler2D _MainTex;
19 |
20 | fixed4 frag(v2f_img input) : SV_Target
21 | {
22 | float4 color = tex2D(_MainTex, input.uv);
23 | color.rgb = 1 - color.rgb;
24 |
25 | return color;
26 | }
27 |
28 | ENDCG
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/Assets/Sample.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | public class Sample : MonoBehaviour
4 | {
5 | public TextShader textShader;
6 |
7 | void Update()
8 | {
9 | this.textShader.DrawText("HelloWorld", 0.35f, 0.5f,
10 | ScreenUtil.ScreenToViewport(50, 50).x, Color.green);
11 |
12 | this.textShader.DrawText("Line\\Break", 0.3f, 0.3f, 0.02f);
13 |
14 | string asciicode = " !\"#$%&'()*+,-./\\"
15 | + "0123456789:;<=>?\\"
16 | + "@ABCDEFGHIJKLMNO\\"
17 | + "PQRSTUVWXYZ[]^_\\"
18 | + "`abcdefghijklmno\\"
19 | + "pqrstuvwxyz{|}~";
20 |
21 | this.textShader.DrawText(asciicode, 0.5f, 0.3f, 0.02f, Color.red);
22 | }
23 | }
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffectBase/ImageEffectBase.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | [ExecuteInEditMode]
4 | [RequireComponent(typeof(Camera))]
5 | public class ImageEffectBase : MonoBehaviour
6 | {
7 | #region Field
8 |
9 | public Material material;
10 |
11 | #endregion Field
12 |
13 | #region Method
14 |
15 | protected virtual void Start()
16 | {
17 | if (!SystemInfo.supportsImageEffects
18 | || !this.material
19 | || !this.material.shader.isSupported)
20 | {
21 | base.enabled = false;
22 | }
23 | }
24 |
25 | protected virtual void OnRenderImage(RenderTexture source, RenderTexture destination)
26 | {
27 | Graphics.Blit(source, destination, this.material);
28 | }
29 |
30 | #endregion Method
31 | }
--------------------------------------------------------------------------------
/ProjectSettings/PresetManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1386491679 &1
4 | PresetManager:
5 | m_ObjectHideFlags: 0
6 | m_DefaultList:
7 | - type:
8 | m_NativeTypeID: 108
9 | m_ManagedTypePPtr: {fileID: 0}
10 | m_ManagedTypeFallback:
11 | defaultPresets:
12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea,
13 | type: 2}
14 | - type:
15 | m_NativeTypeID: 1020
16 | m_ManagedTypePPtr: {fileID: 0}
17 | m_ManagedTypeFallback:
18 | defaultPresets:
19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6,
20 | type: 2}
21 | - type:
22 | m_NativeTypeID: 1006
23 | m_ManagedTypePPtr: {fileID: 0}
24 | m_ManagedTypeFallback:
25 | defaultPresets:
26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9,
27 | type: 2}
28 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Unity_TextShader
2 |
3 |
4 |
5 | TextShader draw your text as ImageEffect (with fragment shader). This effect should be used for a debug.
6 |
7 | ## How to use
8 |
9 | ``` csharp
10 | effect.DrawText("Your Text", posX, posY, size, color);
11 | ```
12 |
13 | Set your text and the parameters in viewport(uv) space.
14 |
15 | ### Limitation
16 |
17 | - Valid characters are AsciiCode number 32 ~ 126.
18 | - `\`(back slash) becomes line-break.
19 |
20 | ## Import to Your Project
21 |
22 | You can import this asset from UnityPackage.
23 |
24 | - [TextShader.unitypackage](https://github.com/XJINE/Unity_TextShader/blob/master/TextShader.unitypackage)
25 |
26 | ### Dependencies
27 |
28 | You have to import following assets to use this asset.
29 |
30 | - [Unity_ImageEffectBase](https://github.com/XJINE/Unity_ImageEffectBase)
31 |
--------------------------------------------------------------------------------
/ProjectSettings/UnityConnectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!310 &1
4 | UnityConnectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 1
7 | m_Enabled: 1
8 | m_TestMode: 0
9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com
12 | m_TestInitMode: 0
13 | CrashReportingSettings:
14 | m_EventUrl: https://perf-events.cloud.unity3d.com
15 | m_Enabled: 0
16 | m_LogBufferSize: 10
17 | m_CaptureEditorExceptions: 1
18 | UnityPurchasingSettings:
19 | m_Enabled: 0
20 | m_TestMode: 0
21 | UnityAnalyticsSettings:
22 | m_Enabled: 0
23 | m_TestMode: 0
24 | m_InitializeOnStartup: 1
25 | UnityAdsSettings:
26 | m_Enabled: 0
27 | m_InitializeOnStartup: 1
28 | m_TestMode: 0
29 | m_IosGameId:
30 | m_AndroidGameId:
31 | m_GameIds: {}
32 | m_GameId:
33 | PerformanceReportingSettings:
34 | m_Enabled: 0
35 |
--------------------------------------------------------------------------------
/Assets/Packages/ScreenUtil/ScreenUtil.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | public static class ScreenUtil
4 | {
5 | #region Property
6 |
7 | public static float AspectRatio
8 | {
9 | get { return (float)Screen.width / Screen.height; }
10 | }
11 |
12 | #endregion Property
13 |
14 | #region Method
15 |
16 | public static Vector2Int ViewportToScreen(Vector2 coord)
17 | {
18 | return ScreenUtil.ViewportToScreen(coord.x, coord.y);
19 | }
20 |
21 | public static Vector2Int ViewportToScreen(float coordX, float coordY)
22 | {
23 | return new Vector2Int((int)(Screen.width * coordX),
24 | (int)(Screen.height * coordY));
25 | }
26 |
27 | public static Vector2 ScreenToViewport(Vector2Int coord)
28 | {
29 | return ScreenUtil.ScreenToViewport(coord.x, coord.y);
30 | }
31 |
32 | public static Vector2 ScreenToViewport(int coordX, int coordY)
33 | {
34 | return new Vector2((float)coordX / Screen.width,
35 | (float)coordY / Screen.height);
36 | }
37 |
38 | #endregion Method
39 | }
--------------------------------------------------------------------------------
/ProjectSettings/DynamicsManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!55 &1
4 | PhysicsManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 8
7 | m_Gravity: {x: 0, y: -9.81, z: 0}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_BounceThreshold: 2
10 | m_SleepThreshold: 0.005
11 | m_DefaultContactOffset: 0.01
12 | m_DefaultSolverIterations: 6
13 | m_DefaultSolverVelocityIterations: 1
14 | m_QueriesHitBackfaces: 0
15 | m_QueriesHitTriggers: 1
16 | m_EnableAdaptiveForce: 0
17 | m_ClothInterCollisionDistance: 0
18 | m_ClothInterCollisionStiffness: 0
19 | m_ContactsGeneration: 1
20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
21 | m_AutoSimulation: 1
22 | m_AutoSyncTransforms: 0
23 | m_ReuseCollisionCallbacks: 1
24 | m_ClothInterCollisionSettingsToggle: 0
25 | m_ContactPairsMode: 0
26 | m_BroadphaseType: 0
27 | m_WorldBounds:
28 | m_Center: {x: 0, y: 0, z: 0}
29 | m_Extent: {x: 250, y: 250, z: 250}
30 | m_WorldSubdivisions: 8
31 |
--------------------------------------------------------------------------------
/ProjectSettings/Physics2DSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!19 &1
4 | Physics2DSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 4
7 | m_Gravity: {x: 0, y: -9.81}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_VelocityIterations: 8
10 | m_PositionIterations: 3
11 | m_VelocityThreshold: 1
12 | m_MaxLinearCorrection: 0.2
13 | m_MaxAngularCorrection: 8
14 | m_MaxTranslationSpeed: 100
15 | m_MaxRotationSpeed: 360
16 | m_BaumgarteScale: 0.2
17 | m_BaumgarteTimeOfImpactScale: 0.75
18 | m_TimeToSleep: 0.5
19 | m_LinearSleepTolerance: 0.01
20 | m_AngularSleepTolerance: 2
21 | m_DefaultContactOffset: 0.01
22 | m_AutoSimulation: 1
23 | m_QueriesHitTriggers: 1
24 | m_QueriesStartInColliders: 1
25 | m_ChangeStopsCallbacks: 0
26 | m_CallbacksOnDisable: 1
27 | m_ReuseCollisionCallbacks: 1
28 | m_AutoSyncTransforms: 0
29 | m_AlwaysShowColliders: 0
30 | m_ShowColliderSleep: 1
31 | m_ShowColliderContacts: 0
32 | m_ShowColliderAABB: 0
33 | m_ContactArrowScale: 0.2
34 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412}
35 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432}
36 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745}
37 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804}
38 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
39 |
--------------------------------------------------------------------------------
/Packages/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "com.unity.multiplayer-hlapi": "1.0.2",
4 | "com.unity.package-manager-ui": "2.1.2",
5 | "com.unity.timeline": "1.0.0",
6 | "com.unity.xr.legacyinputhelpers": "2.0.2",
7 | "com.unity.modules.ai": "1.0.0",
8 | "com.unity.modules.animation": "1.0.0",
9 | "com.unity.modules.assetbundle": "1.0.0",
10 | "com.unity.modules.audio": "1.0.0",
11 | "com.unity.modules.cloth": "1.0.0",
12 | "com.unity.modules.director": "1.0.0",
13 | "com.unity.modules.imageconversion": "1.0.0",
14 | "com.unity.modules.imgui": "1.0.0",
15 | "com.unity.modules.jsonserialize": "1.0.0",
16 | "com.unity.modules.particlesystem": "1.0.0",
17 | "com.unity.modules.physics": "1.0.0",
18 | "com.unity.modules.physics2d": "1.0.0",
19 | "com.unity.modules.screencapture": "1.0.0",
20 | "com.unity.modules.terrain": "1.0.0",
21 | "com.unity.modules.terrainphysics": "1.0.0",
22 | "com.unity.modules.tilemap": "1.0.0",
23 | "com.unity.modules.ui": "1.0.0",
24 | "com.unity.modules.uielements": "1.0.0",
25 | "com.unity.modules.umbra": "1.0.0",
26 | "com.unity.modules.unityanalytics": "1.0.0",
27 | "com.unity.modules.unitywebrequest": "1.0.0",
28 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
29 | "com.unity.modules.unitywebrequestaudio": "1.0.0",
30 | "com.unity.modules.unitywebrequesttexture": "1.0.0",
31 | "com.unity.modules.unitywebrequestwww": "1.0.0",
32 | "com.unity.modules.vehicles": "1.0.0",
33 | "com.unity.modules.video": "1.0.0",
34 | "com.unity.modules.vr": "1.0.0",
35 | "com.unity.modules.wind": "1.0.0",
36 | "com.unity.modules.xr": "1.0.0"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/ProjectSettings/NavMeshAreas.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!126 &1
4 | NavMeshProjectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | areas:
8 | - name: Walkable
9 | cost: 1
10 | - name: Not Walkable
11 | cost: 1
12 | - name: Jump
13 | cost: 2
14 | - name:
15 | cost: 1
16 | - name:
17 | cost: 1
18 | - name:
19 | cost: 1
20 | - name:
21 | cost: 1
22 | - name:
23 | cost: 1
24 | - name:
25 | cost: 1
26 | - name:
27 | cost: 1
28 | - name:
29 | cost: 1
30 | - name:
31 | cost: 1
32 | - name:
33 | cost: 1
34 | - name:
35 | cost: 1
36 | - name:
37 | cost: 1
38 | - name:
39 | cost: 1
40 | - name:
41 | cost: 1
42 | - name:
43 | cost: 1
44 | - name:
45 | cost: 1
46 | - name:
47 | cost: 1
48 | - name:
49 | cost: 1
50 | - name:
51 | cost: 1
52 | - name:
53 | cost: 1
54 | - name:
55 | cost: 1
56 | - name:
57 | cost: 1
58 | - name:
59 | cost: 1
60 | - name:
61 | cost: 1
62 | - name:
63 | cost: 1
64 | - name:
65 | cost: 1
66 | - name:
67 | cost: 1
68 | - name:
69 | cost: 1
70 | - name:
71 | cost: 1
72 | m_LastAgentTypeID: -887442657
73 | m_Settings:
74 | - serializedVersion: 2
75 | agentTypeID: 0
76 | agentRadius: 0.5
77 | agentHeight: 2
78 | agentSlope: 45
79 | agentClimb: 0.75
80 | ledgeDropHeight: 0
81 | maxJumpAcrossDistance: 0
82 | minRegionArea: 2
83 | manualCellSize: 0
84 | cellSize: 0.16666667
85 | manualTileSize: 0
86 | tileSize: 256
87 | accuratePlacement: 0
88 | debug:
89 | m_Flags: 0
90 | m_SettingNames:
91 | - Humanoid
92 |
--------------------------------------------------------------------------------
/Logs/Packages-Update.log:
--------------------------------------------------------------------------------
1 |
2 | === Thu Apr 18 11:39:27 2019
3 |
4 | Packages were changed.
5 | Update Mode: mergeDefaultDependencies
6 |
7 | The following packages were added:
8 | com.unity.analytics@3.2.2
9 | com.unity.purchasing@2.0.3
10 | com.unity.ads@2.0.8
11 | com.unity.textmeshpro@1.3.0
12 | com.unity.package-manager-ui@2.0.7
13 | com.unity.collab-proxy@1.2.15
14 | com.unity.modules.ai@1.0.0
15 | com.unity.modules.animation@1.0.0
16 | com.unity.modules.assetbundle@1.0.0
17 | com.unity.modules.audio@1.0.0
18 | com.unity.modules.cloth@1.0.0
19 | com.unity.modules.director@1.0.0
20 | com.unity.modules.imageconversion@1.0.0
21 | com.unity.modules.imgui@1.0.0
22 | com.unity.modules.jsonserialize@1.0.0
23 | com.unity.modules.particlesystem@1.0.0
24 | com.unity.modules.physics@1.0.0
25 | com.unity.modules.physics2d@1.0.0
26 | com.unity.modules.screencapture@1.0.0
27 | com.unity.modules.terrain@1.0.0
28 | com.unity.modules.terrainphysics@1.0.0
29 | com.unity.modules.tilemap@1.0.0
30 | com.unity.modules.ui@1.0.0
31 | com.unity.modules.uielements@1.0.0
32 | com.unity.modules.umbra@1.0.0
33 | com.unity.modules.unityanalytics@1.0.0
34 | com.unity.modules.unitywebrequest@1.0.0
35 | com.unity.modules.unitywebrequestassetbundle@1.0.0
36 | com.unity.modules.unitywebrequestaudio@1.0.0
37 | com.unity.modules.unitywebrequesttexture@1.0.0
38 | com.unity.modules.unitywebrequestwww@1.0.0
39 | com.unity.modules.vehicles@1.0.0
40 | com.unity.modules.video@1.0.0
41 | com.unity.modules.vr@1.0.0
42 | com.unity.modules.wind@1.0.0
43 | com.unity.modules.xr@1.0.0
44 |
45 | === Mon Jul 22 15:31:43 2019
46 |
47 | Packages were changed.
48 | Update Mode: updateDependencies
49 |
50 | The following packages were added:
51 | com.unity.timeline@1.0.0
52 | com.unity.multiplayer-hlapi@1.0.2
53 | com.unity.xr.legacyinputhelpers@2.0.2
54 | The following packages were updated:
55 | com.unity.package-manager-ui from version 2.0.7 to 2.1.2
56 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffectBase/ImageEffectBase.mat:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!21 &2100000
4 | Material:
5 | serializedVersion: 6
6 | m_ObjectHideFlags: 0
7 | m_CorrespondingSourceObject: {fileID: 0}
8 | m_PrefabInternal: {fileID: 0}
9 | m_Name: ImageEffectBase
10 | m_Shader: {fileID: 4800000, guid: 3f1856e1833bed241ade4708d4c5cc6c, type: 3}
11 | m_ShaderKeywords:
12 | m_LightmapFlags: 4
13 | m_EnableInstancingVariants: 0
14 | m_DoubleSidedGI: 0
15 | m_CustomRenderQueue: -1
16 | stringTagMap: {}
17 | disabledShaderPasses: []
18 | m_SavedProperties:
19 | serializedVersion: 3
20 | m_TexEnvs:
21 | - _BumpMap:
22 | m_Texture: {fileID: 0}
23 | m_Scale: {x: 1, y: 1}
24 | m_Offset: {x: 0, y: 0}
25 | - _DetailAlbedoMap:
26 | m_Texture: {fileID: 0}
27 | m_Scale: {x: 1, y: 1}
28 | m_Offset: {x: 0, y: 0}
29 | - _DetailMask:
30 | m_Texture: {fileID: 0}
31 | m_Scale: {x: 1, y: 1}
32 | m_Offset: {x: 0, y: 0}
33 | - _DetailNormalMap:
34 | m_Texture: {fileID: 0}
35 | m_Scale: {x: 1, y: 1}
36 | m_Offset: {x: 0, y: 0}
37 | - _EmissionMap:
38 | m_Texture: {fileID: 0}
39 | m_Scale: {x: 1, y: 1}
40 | m_Offset: {x: 0, y: 0}
41 | - _MainTex:
42 | m_Texture: {fileID: 0}
43 | m_Scale: {x: 1, y: 1}
44 | m_Offset: {x: 0, y: 0}
45 | - _MetallicGlossMap:
46 | m_Texture: {fileID: 0}
47 | m_Scale: {x: 1, y: 1}
48 | m_Offset: {x: 0, y: 0}
49 | - _OcclusionMap:
50 | m_Texture: {fileID: 0}
51 | m_Scale: {x: 1, y: 1}
52 | m_Offset: {x: 0, y: 0}
53 | - _ParallaxMap:
54 | m_Texture: {fileID: 0}
55 | m_Scale: {x: 1, y: 1}
56 | m_Offset: {x: 0, y: 0}
57 | m_Floats:
58 | - _BumpScale: 1
59 | - _Cutoff: 0.5
60 | - _DetailNormalMapScale: 1
61 | - _DstBlend: 0
62 | - _GlossMapScale: 1
63 | - _Glossiness: 0.5
64 | - _GlossyReflections: 1
65 | - _Metallic: 0
66 | - _Mode: 0
67 | - _OcclusionStrength: 1
68 | - _Parallax: 0.02
69 | - _SmoothnessTextureChannel: 0
70 | - _SpecularHighlights: 1
71 | - _SrcBlend: 1
72 | - _UVSec: 0
73 | - _ZWrite: 1
74 | m_Colors:
75 | - _Color: {r: 1, g: 1, b: 1, a: 1}
76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
77 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/TextShader.mat:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!21 &2100000
4 | Material:
5 | serializedVersion: 6
6 | m_ObjectHideFlags: 0
7 | m_CorrespondingSourceObject: {fileID: 0}
8 | m_PrefabInstance: {fileID: 0}
9 | m_PrefabAsset: {fileID: 0}
10 | m_Name: TextShader
11 | m_Shader: {fileID: 4800000, guid: f245497aab3106344a894569ece2be22, type: 3}
12 | m_ShaderKeywords:
13 | m_LightmapFlags: 4
14 | m_EnableInstancingVariants: 0
15 | m_DoubleSidedGI: 0
16 | m_CustomRenderQueue: -1
17 | stringTagMap: {}
18 | disabledShaderPasses: []
19 | m_SavedProperties:
20 | serializedVersion: 3
21 | m_TexEnvs:
22 | - _BumpMap:
23 | m_Texture: {fileID: 0}
24 | m_Scale: {x: 1, y: 1}
25 | m_Offset: {x: 0, y: 0}
26 | - _DetailAlbedoMap:
27 | m_Texture: {fileID: 0}
28 | m_Scale: {x: 1, y: 1}
29 | m_Offset: {x: 0, y: 0}
30 | - _DetailMask:
31 | m_Texture: {fileID: 0}
32 | m_Scale: {x: 1, y: 1}
33 | m_Offset: {x: 0, y: 0}
34 | - _DetailNormalMap:
35 | m_Texture: {fileID: 0}
36 | m_Scale: {x: 1, y: 1}
37 | m_Offset: {x: 0, y: 0}
38 | - _EmissionMap:
39 | m_Texture: {fileID: 0}
40 | m_Scale: {x: 1, y: 1}
41 | m_Offset: {x: 0, y: 0}
42 | - _MainTex:
43 | m_Texture: {fileID: 0}
44 | m_Scale: {x: 1, y: 1}
45 | m_Offset: {x: 0, y: 0}
46 | - _MetallicGlossMap:
47 | m_Texture: {fileID: 0}
48 | m_Scale: {x: 1, y: 1}
49 | m_Offset: {x: 0, y: 0}
50 | - _OcclusionMap:
51 | m_Texture: {fileID: 0}
52 | m_Scale: {x: 1, y: 1}
53 | m_Offset: {x: 0, y: 0}
54 | - _ParallaxMap:
55 | m_Texture: {fileID: 0}
56 | m_Scale: {x: 1, y: 1}
57 | m_Offset: {x: 0, y: 0}
58 | m_Floats:
59 | - _BumpScale: 1
60 | - _Cutoff: 0.5
61 | - _DetailNormalMapScale: 1
62 | - _DstBlend: 0
63 | - _GlossMapScale: 1
64 | - _Glossiness: 0.5
65 | - _GlossyReflections: 1
66 | - _Metallic: 0
67 | - _Mode: 0
68 | - _OcclusionStrength: 1
69 | - _Parallax: 0.02
70 | - _SmoothnessTextureChannel: 0
71 | - _SpecularHighlights: 1
72 | - _SrcBlend: 1
73 | - _UVSec: 0
74 | - _ZWrite: 1
75 | m_Colors:
76 | - _Color: {r: 1, g: 1, b: 1, a: 1}
77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
78 |
--------------------------------------------------------------------------------
/ProjectSettings/GraphicsSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!30 &1
4 | GraphicsSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 12
7 | m_Deferred:
8 | m_Mode: 1
9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
10 | m_DeferredReflections:
11 | m_Mode: 1
12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0}
13 | m_ScreenSpaceShadows:
14 | m_Mode: 1
15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
16 | m_LegacyDeferred:
17 | m_Mode: 1
18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
19 | m_DepthNormals:
20 | m_Mode: 1
21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
22 | m_MotionVectors:
23 | m_Mode: 1
24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0}
25 | m_LightHalo:
26 | m_Mode: 1
27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0}
28 | m_LensFlare:
29 | m_Mode: 1
30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
31 | m_AlwaysIncludedShaders:
32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0}
35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
38 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
40 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
41 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
42 | m_PreloadedShaders: []
43 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
44 | type: 0}
45 | m_CustomRenderPipeline: {fileID: 0}
46 | m_TransparencySortMode: 0
47 | m_TransparencySortAxis: {x: 0, y: 0, z: 1}
48 | m_DefaultRenderingPath: 1
49 | m_DefaultMobileRenderingPath: 1
50 | m_TierSettings: []
51 | m_LightmapStripping: 0
52 | m_FogStripping: 0
53 | m_InstancingStripping: 0
54 | m_LightmapKeepPlain: 1
55 | m_LightmapKeepDirCombined: 1
56 | m_LightmapKeepDynamicPlain: 1
57 | m_LightmapKeepDynamicDirCombined: 1
58 | m_LightmapKeepShadowMask: 1
59 | m_LightmapKeepSubtractive: 1
60 | m_FogKeepLinear: 1
61 | m_FogKeepExp: 1
62 | m_FogKeepExp2: 1
63 | m_AlbedoSwatchInfos: []
64 | m_LightsUseLinearIntensity: 0
65 | m_LightsUseColorTemperature: 0
66 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/8x8font.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: cc65271947fe3794c8bb17c182e719d1
3 | TextureImporter:
4 | fileIDToRecycleName: {}
5 | externalObjects: {}
6 | serializedVersion: 9
7 | mipmaps:
8 | mipMapMode: 0
9 | enableMipMap: 0
10 | sRGBTexture: 1
11 | linearTexture: 0
12 | fadeOut: 0
13 | borderMipMap: 0
14 | mipMapsPreserveCoverage: 0
15 | alphaTestReferenceValue: 0.5
16 | mipMapFadeDistanceStart: 1
17 | mipMapFadeDistanceEnd: 3
18 | bumpmap:
19 | convertToNormalMap: 0
20 | externalNormalMap: 0
21 | heightScale: 0.25
22 | normalMapFilter: 0
23 | isReadable: 1
24 | streamingMipmaps: 0
25 | streamingMipmapsPriority: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: 0
35 | aniso: 0
36 | mipBias: -100
37 | wrapU: -1
38 | wrapV: -1
39 | wrapW: -1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 0
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spritePixelsToUnits: 100
49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 | spriteGenerateFallbackPhysicsShape: 1
51 | alphaUsage: 1
52 | alphaIsTransparency: 1
53 | spriteTessellationDetail: -1
54 | textureType: 0
55 | textureShape: 1
56 | singleChannelComponent: 0
57 | maxTextureSizeSet: 0
58 | compressionQualitySet: 0
59 | textureFormatSet: 0
60 | platformSettings:
61 | - serializedVersion: 2
62 | buildTarget: DefaultTexturePlatform
63 | maxTextureSize: 128
64 | resizeAlgorithm: 0
65 | textureFormat: -1
66 | textureCompression: 0
67 | compressionQuality: 50
68 | crunchedCompression: 0
69 | allowsAlphaSplitting: 0
70 | overridden: 0
71 | androidETC2FallbackOverride: 0
72 | - serializedVersion: 2
73 | buildTarget: Standalone
74 | maxTextureSize: 128
75 | resizeAlgorithm: 0
76 | textureFormat: -1
77 | textureCompression: 0
78 | compressionQuality: 50
79 | crunchedCompression: 0
80 | allowsAlphaSplitting: 0
81 | overridden: 0
82 | androidETC2FallbackOverride: 0
83 | - serializedVersion: 2
84 | buildTarget: Windows Store Apps
85 | maxTextureSize: 128
86 | resizeAlgorithm: 0
87 | textureFormat: -1
88 | textureCompression: 0
89 | compressionQuality: 50
90 | crunchedCompression: 0
91 | allowsAlphaSplitting: 0
92 | overridden: 0
93 | androidETC2FallbackOverride: 0
94 | - serializedVersion: 2
95 | buildTarget: WebGL
96 | maxTextureSize: 128
97 | resizeAlgorithm: 0
98 | textureFormat: -1
99 | textureCompression: 0
100 | compressionQuality: 50
101 | crunchedCompression: 0
102 | allowsAlphaSplitting: 0
103 | overridden: 0
104 | androidETC2FallbackOverride: 0
105 | spriteSheet:
106 | serializedVersion: 2
107 | sprites: []
108 | outline: []
109 | physicsShape: []
110 | bones: []
111 | spriteID:
112 | vertices: []
113 | indices:
114 | edges: []
115 | weights: []
116 | spritePackingTag:
117 | pSDRemoveMatte: 0
118 | pSDShowRemoveMatteOption: 0
119 | userData:
120 | assetBundleName:
121 | assetBundleVariant:
122 |
--------------------------------------------------------------------------------
/ProjectSettings/QualitySettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!47 &1
4 | QualitySettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 5
7 | m_CurrentQuality: 4
8 | m_QualitySettings:
9 | - serializedVersion: 2
10 | name: Very Low
11 | pixelLightCount: 0
12 | shadows: 0
13 | shadowResolution: 0
14 | shadowProjection: 1
15 | shadowCascades: 1
16 | shadowDistance: 15
17 | shadowNearPlaneOffset: 3
18 | shadowCascade2Split: 0.33333334
19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
20 | shadowmaskMode: 0
21 | blendWeights: 1
22 | textureQuality: 1
23 | anisotropicTextures: 0
24 | antiAliasing: 0
25 | softParticles: 0
26 | softVegetation: 0
27 | realtimeReflectionProbes: 0
28 | billboardsFaceCameraPosition: 0
29 | vSyncCount: 0
30 | lodBias: 0.3
31 | maximumLODLevel: 0
32 | particleRaycastBudget: 4
33 | asyncUploadTimeSlice: 2
34 | asyncUploadBufferSize: 16
35 | resolutionScalingFixedDPIFactor: 1
36 | excludedTargetPlatforms: []
37 | - serializedVersion: 2
38 | name: Low
39 | pixelLightCount: 0
40 | shadows: 0
41 | shadowResolution: 0
42 | shadowProjection: 1
43 | shadowCascades: 1
44 | shadowDistance: 20
45 | shadowNearPlaneOffset: 3
46 | shadowCascade2Split: 0.33333334
47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
48 | shadowmaskMode: 0
49 | blendWeights: 2
50 | textureQuality: 0
51 | anisotropicTextures: 0
52 | antiAliasing: 0
53 | softParticles: 0
54 | softVegetation: 0
55 | realtimeReflectionProbes: 0
56 | billboardsFaceCameraPosition: 0
57 | vSyncCount: 0
58 | lodBias: 0.4
59 | maximumLODLevel: 0
60 | particleRaycastBudget: 16
61 | asyncUploadTimeSlice: 2
62 | asyncUploadBufferSize: 16
63 | resolutionScalingFixedDPIFactor: 1
64 | excludedTargetPlatforms: []
65 | - serializedVersion: 2
66 | name: Medium
67 | pixelLightCount: 1
68 | shadows: 1
69 | shadowResolution: 0
70 | shadowProjection: 1
71 | shadowCascades: 1
72 | shadowDistance: 20
73 | shadowNearPlaneOffset: 3
74 | shadowCascade2Split: 0.33333334
75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
76 | shadowmaskMode: 0
77 | blendWeights: 2
78 | textureQuality: 0
79 | anisotropicTextures: 1
80 | antiAliasing: 0
81 | softParticles: 0
82 | softVegetation: 0
83 | realtimeReflectionProbes: 0
84 | billboardsFaceCameraPosition: 0
85 | vSyncCount: 1
86 | lodBias: 0.7
87 | maximumLODLevel: 0
88 | particleRaycastBudget: 64
89 | asyncUploadTimeSlice: 2
90 | asyncUploadBufferSize: 16
91 | resolutionScalingFixedDPIFactor: 1
92 | excludedTargetPlatforms: []
93 | - serializedVersion: 2
94 | name: High
95 | pixelLightCount: 2
96 | shadows: 2
97 | shadowResolution: 1
98 | shadowProjection: 1
99 | shadowCascades: 2
100 | shadowDistance: 40
101 | shadowNearPlaneOffset: 3
102 | shadowCascade2Split: 0.33333334
103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
104 | shadowmaskMode: 1
105 | blendWeights: 2
106 | textureQuality: 0
107 | anisotropicTextures: 1
108 | antiAliasing: 2
109 | softParticles: 0
110 | softVegetation: 1
111 | realtimeReflectionProbes: 1
112 | billboardsFaceCameraPosition: 1
113 | vSyncCount: 1
114 | lodBias: 1
115 | maximumLODLevel: 0
116 | particleRaycastBudget: 256
117 | asyncUploadTimeSlice: 2
118 | asyncUploadBufferSize: 16
119 | resolutionScalingFixedDPIFactor: 1
120 | excludedTargetPlatforms: []
121 | - serializedVersion: 2
122 | name: Very High
123 | pixelLightCount: 3
124 | shadows: 2
125 | shadowResolution: 2
126 | shadowProjection: 1
127 | shadowCascades: 2
128 | shadowDistance: 40
129 | shadowNearPlaneOffset: 3
130 | shadowCascade2Split: 0.33333334
131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
132 | shadowmaskMode: 1
133 | blendWeights: 4
134 | textureQuality: 0
135 | anisotropicTextures: 1
136 | antiAliasing: 4
137 | softParticles: 1
138 | softVegetation: 1
139 | realtimeReflectionProbes: 1
140 | billboardsFaceCameraPosition: 1
141 | vSyncCount: 1
142 | lodBias: 1.5
143 | maximumLODLevel: 0
144 | particleRaycastBudget: 1024
145 | asyncUploadTimeSlice: 2
146 | asyncUploadBufferSize: 16
147 | resolutionScalingFixedDPIFactor: 1
148 | excludedTargetPlatforms: []
149 | - serializedVersion: 2
150 | name: Ultra
151 | pixelLightCount: 4
152 | shadows: 2
153 | shadowResolution: 2
154 | shadowProjection: 1
155 | shadowCascades: 4
156 | shadowDistance: 150
157 | shadowNearPlaneOffset: 3
158 | shadowCascade2Split: 0.33333334
159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
160 | shadowmaskMode: 1
161 | blendWeights: 4
162 | textureQuality: 0
163 | anisotropicTextures: 1
164 | antiAliasing: 4
165 | softParticles: 1
166 | softVegetation: 1
167 | realtimeReflectionProbes: 1
168 | billboardsFaceCameraPosition: 1
169 | vSyncCount: 1
170 | lodBias: 2
171 | maximumLODLevel: 0
172 | particleRaycastBudget: 4096
173 | asyncUploadTimeSlice: 2
174 | asyncUploadBufferSize: 16
175 | resolutionScalingFixedDPIFactor: 1
176 | excludedTargetPlatforms: []
177 | m_PerPlatformDefaultQuality:
178 | Android: 2
179 | Nintendo 3DS: 5
180 | Nintendo Switch: 5
181 | PS4: 5
182 | PSP2: 2
183 | Standalone: 5
184 | Tizen: 2
185 | WebGL: 3
186 | WiiU: 5
187 | Windows Store Apps: 5
188 | XboxOne: 5
189 | iPhone: 2
190 | tvOS: 2
191 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/TextShader.shader:
--------------------------------------------------------------------------------
1 | Shader "Hidden/TextShader"
2 | {
3 | Properties
4 | {
5 | [HideInInspector]
6 | _MainTex("Texture", 2D) = "white" {}
7 | }
8 | SubShader
9 | {
10 | Cull Off
11 | ZWrite Off
12 | ZTest Always
13 |
14 | Pass
15 | {
16 | CGPROGRAM
17 |
18 | #include "UnityCG.cginc"
19 |
20 | #pragma target 5.0
21 | #pragma vertex vert_img
22 | #pragma fragment frag
23 |
24 | static const float2 SUV_SIZE = float2(0.0625, 0.1666667);
25 |
26 | static const float2 SUV[96] =
27 | {
28 | float2(0, 0.8333334), float2(0.0625, 0.8333334), float2(0.125, 0.8333334), float2(0.1875, 0.8333334),
29 | float2(0.25, 0.8333334), float2(0.3125, 0.8333334), float2(0.375, 0.8333334), float2(0.4375, 0.8333334),
30 | float2(0.5, 0.8333334), float2(0.5625, 0.8333334), float2(0.625, 0.8333334), float2(0.6875, 0.8333334),
31 | float2(0.75, 0.8333334), float2(0.8125, 0.8333334), float2(0.875, 0.8333334), float2(0.9375, 0.8333334),
32 | float2(0, 0.6666667), float2(0.0625, 0.6666667), float2(0.125, 0.6666667), float2(0.1875, 0.6666667),
33 | float2(0.25, 0.6666667), float2(0.3125, 0.6666667), float2(0.375, 0.6666667), float2(0.4375, 0.6666667),
34 | float2(0.5, 0.6666667), float2(0.5625, 0.6666667), float2(0.625, 0.6666667), float2(0.6875, 0.6666667),
35 | float2(0.75, 0.6666667), float2(0.8125, 0.6666667), float2(0.875, 0.6666667), float2(0.9375, 0.6666667),
36 | float2(0, 0.5), float2(0.0625, 0.5), float2(0.125, 0.5), float2(0.1875, 0.5),
37 | float2(0.25, 0.5), float2(0.3125, 0.5), float2(0.375, 0.5), float2(0.4375, 0.5),
38 | float2(0.5, 0.5), float2(0.5625, 0.5), float2(0.625, 0.5), float2(0.6875, 0.5),
39 | float2(0.75, 0.5), float2(0.8125, 0.5), float2(0.875, 0.5), float2(0.9375, 0.5),
40 | float2(0, 0.3333333), float2(0.0625, 0.3333333), float2(0.125, 0.3333333), float2(0.1875, 0.3333333),
41 | float2(0.25, 0.3333333), float2(0.3125, 0.3333333), float2(0.375, 0.3333333), float2(0.4375, 0.3333333),
42 | float2(0.5, 0.3333333), float2(0.5625, 0.3333333), float2(0.625, 0.3333333), float2(0.6875, 0.3333333),
43 | float2(0.75, 0.3333333), float2(0.8125, 0.3333333), float2(0.875, 0.3333333), float2(0.9375, 0.3333333),
44 | float2(0, 0.1666667), float2(0.0625, 0.1666667), float2(0.125, 0.1666667), float2(0.1875, 0.1666667),
45 | float2(0.25, 0.1666667), float2(0.3125, 0.1666667), float2(0.375, 0.1666667), float2(0.4375, 0.1666667),
46 | float2(0.5, 0.1666667), float2(0.5625, 0.1666667), float2(0.625, 0.1666667), float2(0.6875, 0.1666667),
47 | float2(0.75, 0.1666667), float2(0.8125, 0.1666667), float2(0.875, 0.1666667), float2(0.9375, 0.1666667),
48 | float2(0, 0), float2(0.0625, 0), float2(0.125, 0), float2(0.1875, 0),
49 | float2(0.25, 0), float2(0.3125, 0), float2(0.375, 0), float2(0.4375, 0),
50 | float2(0.5, 0), float2(0.5625, 0), float2(0.625, 0), float2(0.6875, 0),
51 | float2(0.75, 0), float2(0.8125, 0), float2(0.875, 0), float2(0.9375, 0)
52 | };
53 |
54 | static const int RETURN_CODE = 60;
55 |
56 | struct TextData
57 | {
58 | // NOTE:
59 | // index.x = offset.
60 | // index.y = length.
61 | // parameter.xy = position.
62 | // parameter.z = charSize.
63 |
64 | float2 index;
65 | float3 parameter;
66 | float4 color;
67 | };
68 |
69 | StructuredBuffer _TextBuffer;
70 | StructuredBuffer _TextDataBuffer;
71 |
72 | sampler2D _MainTex;
73 | sampler2D _FontTex;
74 |
75 | void DrawChar(float2 inputPos, float2 charPos, float2 charSize,
76 | float4 charColor, int char, inout fixed4 dest)
77 |
78 | {
79 | bool draw = charPos.x < inputPos.x
80 | && charPos.y < inputPos.y
81 | && inputPos.x < (charPos.x + charSize.x)
82 | && inputPos.y < (charPos.y + charSize.y);
83 |
84 | float2 suv = SUV[char];
85 | float2 charUV = (inputPos - charPos) / charSize;
86 | float2 spriteUV = lerp(suv, suv + SUV_SIZE, charUV);
87 |
88 | fixed4 color = tex2D(_FontTex, spriteUV) * charColor;
89 |
90 | dest = (draw && color.a != 0) ? color : dest;
91 | }
92 |
93 | fixed4 frag (v2f_img input) : SV_Target
94 | {
95 | float4 color = tex2D(_MainTex, input.uv);
96 |
97 | float aspect = _ScreenParams.x / _ScreenParams.y;
98 |
99 | int textDataBufferLength = (int)_TextDataBuffer.Length;
100 |
101 | TextData textData;
102 |
103 | int char;
104 | int charOffset;
105 | int charLength;
106 | float2 charPos;
107 | float2 charSize;
108 | float4 charColor;
109 |
110 | for (int i = 0; i < textDataBufferLength; i++)
111 | {
112 | textData = _TextDataBuffer[i];
113 |
114 | charOffset = textData.index.x;
115 | charLength = textData.index.y;
116 | charPos = textData.parameter.xy;
117 | charSize = float2(textData.parameter.z, textData.parameter.z * aspect);
118 | charColor = textData.color;
119 |
120 | for(int j = 0; j < charLength; j++)
121 | {
122 | char = _TextBuffer[charOffset + j];
123 |
124 | if(char == RETURN_CODE)
125 | {
126 | charPos.x = textData.parameter.x;
127 | charPos.y -= charSize.y;
128 | continue;
129 | }
130 |
131 | DrawChar(input.uv, charPos, charSize, charColor, char, color);
132 | charPos.x += charSize.x;
133 | }
134 | }
135 |
136 | return color;
137 | }
138 |
139 | ENDCG
140 | }
141 | }
142 | }
--------------------------------------------------------------------------------
/ProjectSettings/InputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!13 &1
4 | InputManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Axes:
8 | - serializedVersion: 3
9 | m_Name: Horizontal
10 | descriptiveName:
11 | descriptiveNegativeName:
12 | negativeButton: left
13 | positiveButton: right
14 | altNegativeButton: a
15 | altPositiveButton: d
16 | gravity: 3
17 | dead: 0.001
18 | sensitivity: 3
19 | snap: 1
20 | invert: 0
21 | type: 0
22 | axis: 0
23 | joyNum: 0
24 | - serializedVersion: 3
25 | m_Name: Vertical
26 | descriptiveName:
27 | descriptiveNegativeName:
28 | negativeButton: down
29 | positiveButton: up
30 | altNegativeButton: s
31 | altPositiveButton: w
32 | gravity: 3
33 | dead: 0.001
34 | sensitivity: 3
35 | snap: 1
36 | invert: 0
37 | type: 0
38 | axis: 0
39 | joyNum: 0
40 | - serializedVersion: 3
41 | m_Name: Fire1
42 | descriptiveName:
43 | descriptiveNegativeName:
44 | negativeButton:
45 | positiveButton: left ctrl
46 | altNegativeButton:
47 | altPositiveButton: mouse 0
48 | gravity: 1000
49 | dead: 0.001
50 | sensitivity: 1000
51 | snap: 0
52 | invert: 0
53 | type: 0
54 | axis: 0
55 | joyNum: 0
56 | - serializedVersion: 3
57 | m_Name: Fire2
58 | descriptiveName:
59 | descriptiveNegativeName:
60 | negativeButton:
61 | positiveButton: left alt
62 | altNegativeButton:
63 | altPositiveButton: mouse 1
64 | gravity: 1000
65 | dead: 0.001
66 | sensitivity: 1000
67 | snap: 0
68 | invert: 0
69 | type: 0
70 | axis: 0
71 | joyNum: 0
72 | - serializedVersion: 3
73 | m_Name: Fire3
74 | descriptiveName:
75 | descriptiveNegativeName:
76 | negativeButton:
77 | positiveButton: left shift
78 | altNegativeButton:
79 | altPositiveButton: mouse 2
80 | gravity: 1000
81 | dead: 0.001
82 | sensitivity: 1000
83 | snap: 0
84 | invert: 0
85 | type: 0
86 | axis: 0
87 | joyNum: 0
88 | - serializedVersion: 3
89 | m_Name: Jump
90 | descriptiveName:
91 | descriptiveNegativeName:
92 | negativeButton:
93 | positiveButton: space
94 | altNegativeButton:
95 | altPositiveButton:
96 | gravity: 1000
97 | dead: 0.001
98 | sensitivity: 1000
99 | snap: 0
100 | invert: 0
101 | type: 0
102 | axis: 0
103 | joyNum: 0
104 | - serializedVersion: 3
105 | m_Name: Mouse X
106 | descriptiveName:
107 | descriptiveNegativeName:
108 | negativeButton:
109 | positiveButton:
110 | altNegativeButton:
111 | altPositiveButton:
112 | gravity: 0
113 | dead: 0
114 | sensitivity: 0.1
115 | snap: 0
116 | invert: 0
117 | type: 1
118 | axis: 0
119 | joyNum: 0
120 | - serializedVersion: 3
121 | m_Name: Mouse Y
122 | descriptiveName:
123 | descriptiveNegativeName:
124 | negativeButton:
125 | positiveButton:
126 | altNegativeButton:
127 | altPositiveButton:
128 | gravity: 0
129 | dead: 0
130 | sensitivity: 0.1
131 | snap: 0
132 | invert: 0
133 | type: 1
134 | axis: 1
135 | joyNum: 0
136 | - serializedVersion: 3
137 | m_Name: Mouse ScrollWheel
138 | descriptiveName:
139 | descriptiveNegativeName:
140 | negativeButton:
141 | positiveButton:
142 | altNegativeButton:
143 | altPositiveButton:
144 | gravity: 0
145 | dead: 0
146 | sensitivity: 0.1
147 | snap: 0
148 | invert: 0
149 | type: 1
150 | axis: 2
151 | joyNum: 0
152 | - serializedVersion: 3
153 | m_Name: Horizontal
154 | descriptiveName:
155 | descriptiveNegativeName:
156 | negativeButton:
157 | positiveButton:
158 | altNegativeButton:
159 | altPositiveButton:
160 | gravity: 0
161 | dead: 0.19
162 | sensitivity: 1
163 | snap: 0
164 | invert: 0
165 | type: 2
166 | axis: 0
167 | joyNum: 0
168 | - serializedVersion: 3
169 | m_Name: Vertical
170 | descriptiveName:
171 | descriptiveNegativeName:
172 | negativeButton:
173 | positiveButton:
174 | altNegativeButton:
175 | altPositiveButton:
176 | gravity: 0
177 | dead: 0.19
178 | sensitivity: 1
179 | snap: 0
180 | invert: 1
181 | type: 2
182 | axis: 1
183 | joyNum: 0
184 | - serializedVersion: 3
185 | m_Name: Fire1
186 | descriptiveName:
187 | descriptiveNegativeName:
188 | negativeButton:
189 | positiveButton: joystick button 0
190 | altNegativeButton:
191 | altPositiveButton:
192 | gravity: 1000
193 | dead: 0.001
194 | sensitivity: 1000
195 | snap: 0
196 | invert: 0
197 | type: 0
198 | axis: 0
199 | joyNum: 0
200 | - serializedVersion: 3
201 | m_Name: Fire2
202 | descriptiveName:
203 | descriptiveNegativeName:
204 | negativeButton:
205 | positiveButton: joystick button 1
206 | altNegativeButton:
207 | altPositiveButton:
208 | gravity: 1000
209 | dead: 0.001
210 | sensitivity: 1000
211 | snap: 0
212 | invert: 0
213 | type: 0
214 | axis: 0
215 | joyNum: 0
216 | - serializedVersion: 3
217 | m_Name: Fire3
218 | descriptiveName:
219 | descriptiveNegativeName:
220 | negativeButton:
221 | positiveButton: joystick button 2
222 | altNegativeButton:
223 | altPositiveButton:
224 | gravity: 1000
225 | dead: 0.001
226 | sensitivity: 1000
227 | snap: 0
228 | invert: 0
229 | type: 0
230 | axis: 0
231 | joyNum: 0
232 | - serializedVersion: 3
233 | m_Name: Jump
234 | descriptiveName:
235 | descriptiveNegativeName:
236 | negativeButton:
237 | positiveButton: joystick button 3
238 | altNegativeButton:
239 | altPositiveButton:
240 | gravity: 1000
241 | dead: 0.001
242 | sensitivity: 1000
243 | snap: 0
244 | invert: 0
245 | type: 0
246 | axis: 0
247 | joyNum: 0
248 | - serializedVersion: 3
249 | m_Name: Submit
250 | descriptiveName:
251 | descriptiveNegativeName:
252 | negativeButton:
253 | positiveButton: return
254 | altNegativeButton:
255 | altPositiveButton: joystick button 0
256 | gravity: 1000
257 | dead: 0.001
258 | sensitivity: 1000
259 | snap: 0
260 | invert: 0
261 | type: 0
262 | axis: 0
263 | joyNum: 0
264 | - serializedVersion: 3
265 | m_Name: Submit
266 | descriptiveName:
267 | descriptiveNegativeName:
268 | negativeButton:
269 | positiveButton: enter
270 | altNegativeButton:
271 | altPositiveButton: space
272 | gravity: 1000
273 | dead: 0.001
274 | sensitivity: 1000
275 | snap: 0
276 | invert: 0
277 | type: 0
278 | axis: 0
279 | joyNum: 0
280 | - serializedVersion: 3
281 | m_Name: Cancel
282 | descriptiveName:
283 | descriptiveNegativeName:
284 | negativeButton:
285 | positiveButton: escape
286 | altNegativeButton:
287 | altPositiveButton: joystick button 1
288 | gravity: 1000
289 | dead: 0.001
290 | sensitivity: 1000
291 | snap: 0
292 | invert: 0
293 | type: 0
294 | axis: 0
295 | joyNum: 0
296 |
--------------------------------------------------------------------------------
/Assets/Sample.unity:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!29 &1
4 | OcclusionCullingSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_OcclusionBakeSettings:
8 | smallestOccluder: 5
9 | smallestHole: 0.25
10 | backfaceThreshold: 100
11 | m_SceneGUID: 00000000000000000000000000000000
12 | m_OcclusionCullingData: {fileID: 0}
13 | --- !u!104 &2
14 | RenderSettings:
15 | m_ObjectHideFlags: 0
16 | serializedVersion: 9
17 | m_Fog: 0
18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
19 | m_FogMode: 3
20 | m_FogDensity: 0.01
21 | m_LinearFogStart: 0
22 | m_LinearFogEnd: 300
23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
26 | m_AmbientIntensity: 1
27 | m_AmbientMode: 0
28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
30 | m_HaloStrength: 0.5
31 | m_FlareStrength: 1
32 | m_FlareFadeSpeed: 3
33 | m_HaloTexture: {fileID: 0}
34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
35 | m_DefaultReflectionMode: 0
36 | m_DefaultReflectionResolution: 128
37 | m_ReflectionBounces: 1
38 | m_ReflectionIntensity: 1
39 | m_CustomReflection: {fileID: 0}
40 | m_Sun: {fileID: 170076734}
41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
42 | m_UseRadianceAmbientProbe: 0
43 | --- !u!157 &3
44 | LightmapSettings:
45 | m_ObjectHideFlags: 0
46 | serializedVersion: 11
47 | m_GIWorkflowMode: 0
48 | m_GISettings:
49 | serializedVersion: 2
50 | m_BounceScale: 1
51 | m_IndirectOutputScale: 1
52 | m_AlbedoBoost: 1
53 | m_EnvironmentLightingMode: 0
54 | m_EnableBakedLightmaps: 1
55 | m_EnableRealtimeLightmaps: 0
56 | m_LightmapEditorSettings:
57 | serializedVersion: 10
58 | m_Resolution: 2
59 | m_BakeResolution: 10
60 | m_AtlasSize: 512
61 | m_AO: 0
62 | m_AOMaxDistance: 1
63 | m_CompAOExponent: 1
64 | m_CompAOExponentDirect: 0
65 | m_Padding: 2
66 | m_LightmapParameters: {fileID: 0}
67 | m_LightmapsBakeMode: 1
68 | m_TextureCompression: 1
69 | m_FinalGather: 0
70 | m_FinalGatherFiltering: 1
71 | m_FinalGatherRayCount: 256
72 | m_ReflectionCompression: 2
73 | m_MixedBakeMode: 2
74 | m_BakeBackend: 1
75 | m_PVRSampling: 1
76 | m_PVRDirectSampleCount: 32
77 | m_PVRSampleCount: 256
78 | m_PVRBounces: 2
79 | m_PVRFilterTypeDirect: 0
80 | m_PVRFilterTypeIndirect: 0
81 | m_PVRFilterTypeAO: 0
82 | m_PVRFilteringMode: 1
83 | m_PVRCulling: 1
84 | m_PVRFilteringGaussRadiusDirect: 1
85 | m_PVRFilteringGaussRadiusIndirect: 5
86 | m_PVRFilteringGaussRadiusAO: 2
87 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5
88 | m_PVRFilteringAtrousPositionSigmaIndirect: 2
89 | m_PVRFilteringAtrousPositionSigmaAO: 1
90 | m_ShowResolutionOverlay: 1
91 | m_LightingDataAsset: {fileID: 0}
92 | m_UseShadowmask: 1
93 | --- !u!196 &4
94 | NavMeshSettings:
95 | serializedVersion: 2
96 | m_ObjectHideFlags: 0
97 | m_BuildSettings:
98 | serializedVersion: 2
99 | agentTypeID: 0
100 | agentRadius: 0.5
101 | agentHeight: 2
102 | agentSlope: 45
103 | agentClimb: 0.4
104 | ledgeDropHeight: 0
105 | maxJumpAcrossDistance: 0
106 | minRegionArea: 2
107 | manualCellSize: 0
108 | cellSize: 0.16666667
109 | manualTileSize: 0
110 | tileSize: 256
111 | accuratePlacement: 0
112 | debug:
113 | m_Flags: 0
114 | m_NavMeshData: {fileID: 0}
115 | --- !u!1 &170076733
116 | GameObject:
117 | m_ObjectHideFlags: 0
118 | m_CorrespondingSourceObject: {fileID: 0}
119 | m_PrefabInstance: {fileID: 0}
120 | m_PrefabAsset: {fileID: 0}
121 | serializedVersion: 6
122 | m_Component:
123 | - component: {fileID: 170076735}
124 | - component: {fileID: 170076734}
125 | m_Layer: 0
126 | m_Name: Directional Light
127 | m_TagString: Untagged
128 | m_Icon: {fileID: 0}
129 | m_NavMeshLayer: 0
130 | m_StaticEditorFlags: 0
131 | m_IsActive: 1
132 | --- !u!108 &170076734
133 | Light:
134 | m_ObjectHideFlags: 0
135 | m_CorrespondingSourceObject: {fileID: 0}
136 | m_PrefabInstance: {fileID: 0}
137 | m_PrefabAsset: {fileID: 0}
138 | m_GameObject: {fileID: 170076733}
139 | m_Enabled: 1
140 | serializedVersion: 8
141 | m_Type: 1
142 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
143 | m_Intensity: 1
144 | m_Range: 10
145 | m_SpotAngle: 30
146 | m_CookieSize: 10
147 | m_Shadows:
148 | m_Type: 2
149 | m_Resolution: -1
150 | m_CustomResolution: -1
151 | m_Strength: 1
152 | m_Bias: 0.05
153 | m_NormalBias: 0.4
154 | m_NearPlane: 0.2
155 | m_Cookie: {fileID: 0}
156 | m_DrawHalo: 0
157 | m_Flare: {fileID: 0}
158 | m_RenderMode: 0
159 | m_CullingMask:
160 | serializedVersion: 2
161 | m_Bits: 4294967295
162 | m_Lightmapping: 1
163 | m_LightShadowCasterMode: 0
164 | m_AreaSize: {x: 1, y: 1}
165 | m_BounceIntensity: 1
166 | m_ColorTemperature: 6570
167 | m_UseColorTemperature: 0
168 | m_ShadowRadius: 0
169 | m_ShadowAngle: 0
170 | --- !u!4 &170076735
171 | Transform:
172 | m_ObjectHideFlags: 0
173 | m_CorrespondingSourceObject: {fileID: 0}
174 | m_PrefabInstance: {fileID: 0}
175 | m_PrefabAsset: {fileID: 0}
176 | m_GameObject: {fileID: 170076733}
177 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
178 | m_LocalPosition: {x: 0, y: 3, z: 0}
179 | m_LocalScale: {x: 1, y: 1, z: 1}
180 | m_Children: []
181 | m_Father: {fileID: 0}
182 | m_RootOrder: 1
183 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
184 | --- !u!1 &534669902
185 | GameObject:
186 | m_ObjectHideFlags: 0
187 | m_CorrespondingSourceObject: {fileID: 0}
188 | m_PrefabInstance: {fileID: 0}
189 | m_PrefabAsset: {fileID: 0}
190 | serializedVersion: 6
191 | m_Component:
192 | - component: {fileID: 534669905}
193 | - component: {fileID: 534669904}
194 | - component: {fileID: 534669903}
195 | - component: {fileID: 534669906}
196 | - component: {fileID: 534669907}
197 | m_Layer: 0
198 | m_Name: Main Camera
199 | m_TagString: MainCamera
200 | m_Icon: {fileID: 0}
201 | m_NavMeshLayer: 0
202 | m_StaticEditorFlags: 0
203 | m_IsActive: 1
204 | --- !u!81 &534669903
205 | AudioListener:
206 | m_ObjectHideFlags: 0
207 | m_CorrespondingSourceObject: {fileID: 0}
208 | m_PrefabInstance: {fileID: 0}
209 | m_PrefabAsset: {fileID: 0}
210 | m_GameObject: {fileID: 534669902}
211 | m_Enabled: 1
212 | --- !u!20 &534669904
213 | Camera:
214 | m_ObjectHideFlags: 0
215 | m_CorrespondingSourceObject: {fileID: 0}
216 | m_PrefabInstance: {fileID: 0}
217 | m_PrefabAsset: {fileID: 0}
218 | m_GameObject: {fileID: 534669902}
219 | m_Enabled: 1
220 | serializedVersion: 2
221 | m_ClearFlags: 1
222 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
223 | m_projectionMatrixMode: 1
224 | m_SensorSize: {x: 36, y: 24}
225 | m_LensShift: {x: 0, y: 0}
226 | m_GateFitMode: 2
227 | m_FocalLength: 50
228 | m_NormalizedViewPortRect:
229 | serializedVersion: 2
230 | x: 0
231 | y: 0
232 | width: 1
233 | height: 1
234 | near clip plane: 0.3
235 | far clip plane: 1000
236 | field of view: 60
237 | orthographic: 0
238 | orthographic size: 5
239 | m_Depth: -1
240 | m_CullingMask:
241 | serializedVersion: 2
242 | m_Bits: 4294967295
243 | m_RenderingPath: -1
244 | m_TargetTexture: {fileID: 0}
245 | m_TargetDisplay: 0
246 | m_TargetEye: 3
247 | m_HDR: 1
248 | m_AllowMSAA: 1
249 | m_AllowDynamicResolution: 0
250 | m_ForceIntoRT: 0
251 | m_OcclusionCulling: 1
252 | m_StereoConvergence: 10
253 | m_StereoSeparation: 0.022
254 | --- !u!4 &534669905
255 | Transform:
256 | m_ObjectHideFlags: 0
257 | m_CorrespondingSourceObject: {fileID: 0}
258 | m_PrefabInstance: {fileID: 0}
259 | m_PrefabAsset: {fileID: 0}
260 | m_GameObject: {fileID: 534669902}
261 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
262 | m_LocalPosition: {x: 0, y: 1, z: -10}
263 | m_LocalScale: {x: 1, y: 1, z: 1}
264 | m_Children: []
265 | m_Father: {fileID: 0}
266 | m_RootOrder: 0
267 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
268 | --- !u!114 &534669906
269 | MonoBehaviour:
270 | m_ObjectHideFlags: 0
271 | m_CorrespondingSourceObject: {fileID: 0}
272 | m_PrefabInstance: {fileID: 0}
273 | m_PrefabAsset: {fileID: 0}
274 | m_GameObject: {fileID: 534669902}
275 | m_Enabled: 1
276 | m_EditorHideFlags: 0
277 | m_Script: {fileID: 11500000, guid: c9718967ecdae8e47a01d2c0712bd897, type: 3}
278 | m_Name:
279 | m_EditorClassIdentifier:
280 | material: {fileID: 2100000, guid: 5b7990a73cabd7a49bf273b25017490d, type: 2}
281 | autoClear: 1
282 | --- !u!114 &534669907
283 | MonoBehaviour:
284 | m_ObjectHideFlags: 0
285 | m_CorrespondingSourceObject: {fileID: 0}
286 | m_PrefabInstance: {fileID: 0}
287 | m_PrefabAsset: {fileID: 0}
288 | m_GameObject: {fileID: 534669902}
289 | m_Enabled: 1
290 | m_EditorHideFlags: 0
291 | m_Script: {fileID: 11500000, guid: 73669890955e66443bea6d689f0a5bbd, type: 3}
292 | m_Name:
293 | m_EditorClassIdentifier:
294 | textShader: {fileID: 534669906}
295 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/Assets/Packages/ImageEffect/TextShader/TextShader.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Runtime.InteropServices;
3 | using UnityEngine;
4 |
5 | [ExecuteInEditMode]
6 | public class TextShader : ImageEffectBase
7 | {
8 | #region Field
9 |
10 | // NOTE:
11 | // Base texture is here(CC0).
12 | // SpriteFontTextureData is made from "Texture2D.EncodeToPNG()".
13 | // https://commons.wikimedia.org/wiki/File:Atari_ST_character_set_8x8.png
14 |
15 | protected static Texture2D SpriteFontTexture;
16 | protected static readonly Vector2Int SpriteFontTextureSize = new Vector2Int(128, 48);
17 | protected static readonly byte[] SpriteFontTextureData = new byte[]
18 | {
19 | 137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,128,0,0,0,48,8,6,0,0,0,217,244,114,190,0,0,7,191,73,68,65,84,120,1,237,152,137,82,35,73,12,
20 | 68,135,141,249,255,95,102,201,134,215,145,164,85,87,31,30,152,161,34,76,73,202,67,170,114,135,13,188,188,190,190,254,90,88,144,95,66,147,245,204,131,222,76,143,234,100,136,86,113,
21 | 206,167,154,22,156,22,238,28,197,240,208,121,77,241,119,94,58,211,203,127,79,58,129,154,113,137,30,123,123,112,213,146,51,147,75,87,189,97,170,207,46,159,1,47,105,61,118,14,190,
22 | 163,249,90,60,234,207,222,247,51,60,227,1,216,155,189,157,114,20,235,162,253,85,93,12,30,254,166,16,87,88,229,49,170,225,231,188,170,6,14,166,254,87,205,128,247,213,251,167,249,
23 | 94,46,250,10,24,13,233,77,61,118,29,117,106,92,42,185,118,56,137,81,23,39,49,213,102,23,62,45,143,10,167,214,234,33,175,22,167,213,39,189,206,234,241,195,103,239,251,27,228,
24 | 11,236,251,80,111,179,104,80,189,178,166,49,189,166,220,15,133,78,117,173,228,190,87,175,253,73,15,230,192,157,186,114,98,56,228,112,71,251,42,191,242,43,123,175,126,5,104,144,213,
25 | 97,104,172,161,122,177,48,94,226,122,31,116,212,156,39,46,11,92,185,199,224,179,59,253,156,95,213,192,193,212,147,190,212,224,140,118,241,87,53,233,217,242,192,151,217,118,221,234,3,
26 | 208,106,176,27,22,129,55,237,197,45,12,75,199,169,105,167,206,108,158,59,111,38,70,43,46,151,150,177,115,240,84,205,235,153,183,120,212,159,177,251,124,123,191,213,223,1,118,225,79,
27 | 112,233,13,240,176,149,111,210,165,157,194,204,127,7,96,8,40,213,48,112,122,88,165,71,7,198,222,243,113,108,70,159,156,43,245,154,183,231,207,121,142,238,62,171,247,202,122,203,159,
28 | 217,122,124,56,120,108,92,62,1,0,49,200,220,135,82,12,15,179,228,103,14,79,251,12,38,158,247,232,105,70,158,194,115,165,223,217,28,255,244,161,206,62,194,197,155,225,224,231,123,
29 | 79,151,216,158,251,39,0,102,128,228,236,122,67,122,24,188,222,142,222,223,92,248,96,228,213,238,156,202,163,210,100,13,143,163,250,244,187,50,111,205,70,61,123,249,25,20,139,167,151,
30 | 215,165,201,92,181,109,229,39,128,138,24,17,111,196,143,31,12,210,52,124,227,141,56,21,238,53,143,189,183,199,201,33,119,78,53,35,188,30,134,71,114,208,130,107,79,142,99,171,49,
31 | 254,103,61,71,62,159,240,252,43,224,238,230,126,105,12,226,23,229,53,143,157,211,139,53,63,103,72,61,57,184,251,56,6,78,13,30,222,224,212,125,151,38,117,179,56,190,61,189,123,
32 | 85,49,90,188,146,243,128,87,95,1,41,154,205,31,204,77,216,195,68,243,129,43,110,85,51,251,167,134,119,206,162,123,144,191,94,213,157,228,65,43,142,215,122,252,13,227,43,64,9,
33 | 7,67,228,70,137,37,103,132,143,252,241,115,158,247,247,58,220,163,120,234,240,203,51,36,207,241,196,240,232,237,232,103,180,43,92,245,156,229,63,240,252,1,232,13,255,131,253,165,55,
34 | 224,95,1,60,29,28,181,122,82,225,36,70,29,173,246,17,199,241,212,59,38,175,196,85,211,130,55,194,197,173,56,169,111,229,149,30,174,176,92,244,130,179,154,187,95,106,133,101,109,
35 | 148,187,6,239,109,54,126,9,116,131,28,26,1,156,202,12,142,180,149,30,109,11,119,253,140,191,251,160,213,78,157,29,44,251,39,14,175,183,75,195,242,152,218,236,238,179,204,106,196,
36 | 67,199,94,105,91,24,117,63,247,86,227,1,112,51,200,85,237,193,192,73,11,177,251,164,140,203,173,230,72,238,119,203,57,19,103,92,157,31,125,79,55,195,217,245,254,21,176,23,223,
37 | 2,13,184,100,244,33,118,205,209,67,250,28,25,143,252,71,184,252,122,28,199,178,247,85,249,209,123,225,61,97,191,100,158,214,3,208,186,136,86,157,97,56,156,120,122,145,131,159,221,
38 | 71,126,35,92,253,197,105,157,3,125,11,63,59,191,244,103,238,133,249,90,115,244,206,86,106,170,175,0,153,240,74,81,171,158,188,81,174,75,104,93,50,117,245,250,46,171,119,30,63,
39 | 3,103,226,140,142,93,21,211,99,202,143,79,0,137,170,67,44,153,125,120,208,216,181,149,191,227,104,184,152,10,19,7,28,126,139,7,206,94,245,7,155,221,189,183,98,239,93,249,59,
40 | 238,61,156,155,28,239,33,77,226,238,179,18,123,79,116,155,247,207,255,1,184,142,127,116,231,19,32,159,60,93,71,62,125,201,113,60,177,43,244,238,129,63,61,87,242,228,202,55,107,
41 | 87,229,242,246,197,188,212,232,67,14,174,58,49,152,239,45,157,115,20,143,124,146,255,43,127,7,208,16,12,226,77,137,91,56,198,45,124,164,119,157,188,50,199,255,171,238,204,203,62,
42 | 154,179,226,113,71,149,182,226,39,15,61,123,226,101,158,15,64,73,186,161,56,115,160,27,218,54,45,53,143,150,46,143,11,164,182,1,11,63,142,232,233,133,118,161,221,70,69,183,236,
43 | 147,15,128,140,210,108,101,152,150,222,7,115,206,138,247,21,92,206,86,121,49,163,48,143,61,247,217,147,35,30,254,21,38,188,183,208,224,209,227,58,6,31,61,59,117,231,62,196,249,
44 | 0,72,204,235,129,252,86,24,153,210,188,210,226,11,103,228,85,121,156,169,209,143,61,189,188,238,49,60,230,86,238,49,56,154,10,131,51,218,209,226,53,226,11,151,6,29,252,170,6,
45 | 246,105,207,7,224,19,88,36,50,102,184,108,10,157,58,60,213,21,123,14,247,170,221,123,210,135,154,247,168,106,194,93,3,135,154,235,91,49,92,180,45,222,76,29,15,60,103,52,135,
46 | 57,252,21,48,50,208,80,26,72,175,140,71,90,225,174,129,207,65,201,123,123,165,79,62,28,213,43,111,106,206,75,143,179,121,190,105,244,76,95,120,45,60,103,132,159,62,51,121,79,
47 | 251,242,243,127,128,153,43,252,139,57,179,159,0,163,43,224,41,107,61,209,35,125,226,71,253,208,201,111,101,22,116,35,205,136,215,194,91,117,63,55,156,213,217,221,99,57,214,3,64,
48 | 227,209,225,151,205,159,44,120,198,57,70,119,52,194,123,87,34,45,103,232,241,46,197,244,0,208,88,205,123,7,200,225,42,174,115,18,119,76,135,24,225,226,248,234,233,29,35,158,241,
49 | 239,113,86,48,230,108,245,6,103,159,229,137,15,87,177,102,34,247,249,168,137,195,114,92,181,228,108,56,127,5,64,78,18,102,218,197,225,165,188,226,182,112,184,224,218,125,37,238,152,
50 | 226,10,167,38,220,253,232,161,58,11,110,133,193,209,238,56,26,112,239,65,237,200,142,239,17,63,180,234,235,49,115,180,230,135,251,128,251,239,0,163,129,48,161,217,159,216,191,194,12,
51 | 103,206,205,252,163,187,174,122,72,35,61,123,197,89,174,249,3,208,19,231,224,228,61,205,29,216,145,139,211,28,92,218,159,154,155,187,240,57,142,156,229,136,134,222,229,206,87,64,9,
52 | 90,145,198,186,192,222,37,58,142,70,54,196,224,233,145,184,181,222,194,196,83,159,252,42,151,7,175,10,31,213,188,167,199,35,93,226,126,22,199,220,211,99,231,28,141,189,39,222,91,
53 | 237,95,249,63,0,135,246,11,228,82,188,118,52,118,255,43,125,143,206,51,173,155,253,10,152,54,252,162,196,187,223,148,21,255,222,195,2,150,126,212,117,189,137,157,186,242,217,175,128,
54 | 83,77,22,196,58,168,31,118,65,250,45,168,156,77,111,226,202,27,233,124,60,252,192,179,247,246,192,227,19,160,50,205,1,123,156,30,198,160,61,78,98,228,204,112,38,79,173,230,201,
55 | 218,85,57,103,101,103,126,242,59,118,102,151,183,98,122,122,220,236,203,3,0,193,197,110,64,19,199,209,248,238,120,79,239,26,197,174,243,60,121,119,229,234,175,121,57,167,250,48,147,
56 | 226,209,114,46,30,94,147,190,85,31,121,59,238,115,186,63,113,158,193,181,222,95,241,166,185,235,43,64,230,12,165,33,136,25,144,97,132,61,115,245,250,50,163,230,241,120,101,62,252,
57 | 43,61,53,56,43,190,112,209,226,165,250,76,140,254,97,191,235,1,120,104,244,49,168,134,101,96,14,83,113,87,107,238,137,47,53,118,234,236,212,233,69,93,185,199,202,225,170,158,152,
58 | 112,45,234,112,223,171,207,255,169,254,57,67,206,38,124,171,229,87,0,68,141,237,38,8,28,23,103,118,85,58,247,199,39,251,192,201,58,124,223,225,168,134,206,113,234,213,44,212,208,
59 | 41,215,139,28,173,118,45,248,239,217,231,220,49,215,139,171,28,111,114,237,163,213,243,28,105,29,119,159,173,206,255,1,0,114,96,23,123,188,202,119,237,119,140,57,175,207,62,123,87,
60 | 174,25,197,244,185,195,187,236,253,63,80,228,37,133,100,45,100,212,0,0,0,0,73,69,78,68,174,66,96,130,
61 | };
62 |
63 | protected static readonly int AsciiCodeStart = 32;
64 | protected static readonly int AsciiCodeEnd = 126;
65 | protected static readonly int AsciiCodeDelete = AsciiCodeEnd + 1;
66 | protected static readonly int AsciiCodeReturn = 60; // '\\'
67 | protected static readonly char[] AsciiCodes = new char[]
68 | {
69 | ' ','!','\"','#','$','%','&','\'','(',')','*','+',',','-','.','/',
70 | '0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?',
71 | '@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O',
72 | 'P','Q','R','S','T','U','V','W','X','Y','Z','[','\\',']','^','_',
73 | '`','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o',
74 | 'p','q','r','s','t','u','v','w','x','y','z','{','|','}','~',
75 | };
76 |
77 | protected static int TextBufferID = -1;
78 | protected static int TextDataBufferID = -1;
79 |
80 | [System.Serializable]
81 | public struct TextData
82 | {
83 | // NOTE:
84 | // index.x = offset.
85 | // index.y = length.
86 | // parameter.xy = position.
87 | // parameter.z = charSize.
88 |
89 | public Vector2 index;
90 | public Vector3 parameter;
91 | public Color color;
92 | }
93 |
94 | private ComputeBuffer textBuffer;
95 | private ComputeBuffer textDataBuffer;
96 |
97 | private readonly List textList = new List();
98 | private readonly List textDataList = new List();
99 |
100 | #endregion Field
101 |
102 | #region Method
103 |
104 | protected virtual void Awake()
105 | {
106 | if (TextShader.SpriteFontTexture == null)
107 | {
108 | TextShader.SpriteFontTexture
109 | = new Texture2D(TextShader.SpriteFontTextureSize.x,
110 | TextShader.SpriteFontTextureSize.y,
111 | TextureFormat.ARGB32,
112 | false,
113 | false)
114 | {
115 | filterMode = FilterMode.Point,
116 | };
117 |
118 | TextShader.SpriteFontTexture.LoadImage(TextShader.SpriteFontTextureData);
119 | base.material.SetTexture("_FontTex", TextShader.SpriteFontTexture);
120 | }
121 |
122 | if (TextShader.TextBufferID < 0)
123 | {
124 | TextShader.TextBufferID = Shader.PropertyToID("_TextBuffer");
125 | TextShader.TextDataBufferID = Shader.PropertyToID("_TextDataBuffer");
126 | }
127 | }
128 |
129 | protected override void OnRenderImage(RenderTexture src, RenderTexture dest)
130 | {
131 | if (this.textList.Count != 0)
132 | {
133 | this.textBuffer = new ComputeBuffer(this.textList.Count, Marshal.SizeOf(typeof(int)));
134 | this.textBuffer.SetData(this.textList);
135 |
136 | this.textDataBuffer = new ComputeBuffer(this.textDataList.Count, Marshal.SizeOf(typeof(TextData)));
137 | this.textDataBuffer.SetData(this.textDataList);
138 |
139 | base.material.SetBuffer(TextShader.TextBufferID, this.textBuffer);
140 | base.material.SetBuffer(TextShader.TextDataBufferID, this.textDataBuffer);
141 | }
142 |
143 | base.OnRenderImage(src, dest);
144 |
145 | if (this.textBuffer != null)
146 | {
147 | this.textBuffer.Release();
148 | this.textDataBuffer.Release();
149 | }
150 |
151 | this.textList.Clear();
152 | this.textDataList.Clear();
153 | }
154 |
155 | protected void OnDestroy()
156 | {
157 | if (this.textBuffer != null)
158 | {
159 | this.textBuffer.Release();
160 | this.textBuffer = null;
161 | }
162 |
163 | if (this.textDataBuffer != null)
164 | {
165 | this.textDataBuffer.Release();
166 | this.textDataBuffer = null;
167 | }
168 | }
169 |
170 | public void DrawText(string text, float posX, float posY, float size)
171 | {
172 | DrawText(text, posX, posY, size, Color.white);
173 | }
174 |
175 | public void DrawText(string text, float posX, float posY, float size, Color color)
176 | {
177 | int textLength = text.Length;
178 |
179 | this.textDataList.Add(new TextData()
180 | {
181 | index = new Vector2(this.textList.Count, textLength),
182 | parameter = new Vector3(posX, posY, size),
183 | color = color
184 | });
185 |
186 | for (int i = 0; i < textLength; i++)
187 | {
188 | // EX:
189 | // When the input is "!", the value becomes 33 - 32 = 1.
190 |
191 | int charCode = (int)text[i];
192 |
193 | bool validCode = TextShader.AsciiCodeStart <= charCode
194 | && charCode <= TextShader.AsciiCodeEnd;
195 |
196 | charCode = validCode ? charCode - TextShader.AsciiCodeStart
197 | : TextShader.AsciiCodeDelete;
198 |
199 | this.textList.Add(charCode);
200 | }
201 | }
202 |
203 | #endregion Method
204 | }
--------------------------------------------------------------------------------
/ProjectSettings/ProjectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!129 &1
4 | PlayerSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 15
7 | productGUID: f50d8cffb8daf934c9a5043f4bf1fcc3
8 | AndroidProfiler: 0
9 | AndroidFilterTouchesWhenObscured: 0
10 | AndroidEnableSustainedPerformanceMode: 0
11 | defaultScreenOrientation: 4
12 | targetDevice: 2
13 | useOnDemandResources: 0
14 | accelerometerFrequency: 60
15 | companyName: DefaultCompany
16 | productName: TextShader
17 | defaultCursor: {fileID: 0}
18 | cursorHotspot: {x: 0, y: 0}
19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
20 | m_ShowUnitySplashScreen: 1
21 | m_ShowUnitySplashLogo: 1
22 | m_SplashScreenOverlayOpacity: 1
23 | m_SplashScreenAnimation: 1
24 | m_SplashScreenLogoStyle: 1
25 | m_SplashScreenDrawMode: 0
26 | m_SplashScreenBackgroundAnimationZoom: 1
27 | m_SplashScreenLogoAnimationZoom: 1
28 | m_SplashScreenBackgroundLandscapeAspect: 1
29 | m_SplashScreenBackgroundPortraitAspect: 1
30 | m_SplashScreenBackgroundLandscapeUvs:
31 | serializedVersion: 2
32 | x: 0
33 | y: 0
34 | width: 1
35 | height: 1
36 | m_SplashScreenBackgroundPortraitUvs:
37 | serializedVersion: 2
38 | x: 0
39 | y: 0
40 | width: 1
41 | height: 1
42 | m_SplashScreenLogos: []
43 | m_VirtualRealitySplashScreen: {fileID: 0}
44 | m_HolographicTrackingLossScreen: {fileID: 0}
45 | defaultScreenWidth: 1024
46 | defaultScreenHeight: 768
47 | defaultScreenWidthWeb: 960
48 | defaultScreenHeightWeb: 600
49 | m_StereoRenderingPath: 0
50 | m_ActiveColorSpace: 0
51 | m_MTRendering: 1
52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000
53 | iosShowActivityIndicatorOnLoading: -1
54 | androidShowActivityIndicatorOnLoading: -1
55 | iosAppInBackgroundBehavior: 0
56 | displayResolutionDialog: 1
57 | iosAllowHTTPDownload: 1
58 | allowedAutorotateToPortrait: 1
59 | allowedAutorotateToPortraitUpsideDown: 1
60 | allowedAutorotateToLandscapeRight: 1
61 | allowedAutorotateToLandscapeLeft: 1
62 | useOSAutorotation: 1
63 | use32BitDisplayBuffer: 1
64 | preserveFramebufferAlpha: 0
65 | disableDepthAndStencilBuffers: 0
66 | androidStartInFullscreen: 1
67 | androidRenderOutsideSafeArea: 0
68 | androidBlitType: 0
69 | defaultIsNativeResolution: 1
70 | macRetinaSupport: 1
71 | runInBackground: 1
72 | captureSingleScreen: 0
73 | muteOtherAudioSources: 0
74 | Prepare IOS For Recording: 0
75 | Force IOS Speakers When Recording: 0
76 | deferSystemGesturesMode: 0
77 | hideHomeButton: 0
78 | submitAnalytics: 1
79 | usePlayerLog: 1
80 | bakeCollisionMeshes: 0
81 | forceSingleInstance: 0
82 | resizableWindow: 0
83 | useMacAppStoreValidation: 0
84 | macAppStoreCategory: public.app-category.games
85 | gpuSkinning: 1
86 | graphicsJobs: 0
87 | xboxPIXTextureCapture: 0
88 | xboxEnableAvatar: 0
89 | xboxEnableKinect: 0
90 | xboxEnableKinectAutoTracking: 0
91 | xboxEnableFitness: 0
92 | visibleInBackground: 1
93 | allowFullscreenSwitch: 1
94 | graphicsJobMode: 0
95 | fullscreenMode: 1
96 | xboxSpeechDB: 0
97 | xboxEnableHeadOrientation: 0
98 | xboxEnableGuest: 0
99 | xboxEnablePIXSampling: 0
100 | metalFramebufferOnly: 0
101 | xboxOneResolution: 0
102 | xboxOneSResolution: 0
103 | xboxOneXResolution: 3
104 | xboxOneMonoLoggingLevel: 0
105 | xboxOneLoggingLevel: 1
106 | xboxOneDisableEsram: 0
107 | xboxOnePresentImmediateThreshold: 0
108 | switchQueueCommandMemory: 0
109 | switchQueueControlMemory: 16384
110 | switchQueueComputeMemory: 262144
111 | switchNVNShaderPoolsGranularity: 33554432
112 | switchNVNDefaultPoolsGranularity: 16777216
113 | switchNVNOtherPoolsGranularity: 16777216
114 | vulkanEnableSetSRGBWrite: 0
115 | m_SupportedAspectRatios:
116 | 4:3: 1
117 | 5:4: 1
118 | 16:10: 1
119 | 16:9: 1
120 | Others: 1
121 | bundleVersion: 0.1
122 | preloadedAssets: []
123 | metroInputSource: 0
124 | wsaTransparentSwapchain: 0
125 | m_HolographicPauseOnTrackingLoss: 1
126 | xboxOneDisableKinectGpuReservation: 1
127 | xboxOneEnable7thCore: 1
128 | isWsaHolographicRemotingEnabled: 0
129 | vrSettings:
130 | cardboard:
131 | depthFormat: 0
132 | enableTransitionView: 0
133 | daydream:
134 | depthFormat: 0
135 | useSustainedPerformanceMode: 0
136 | enableVideoLayer: 0
137 | useProtectedVideoMemory: 0
138 | minimumSupportedHeadTracking: 0
139 | maximumSupportedHeadTracking: 1
140 | hololens:
141 | depthFormat: 1
142 | depthBufferSharingEnabled: 1
143 | oculus:
144 | sharedDepthBuffer: 1
145 | dashSupport: 1
146 | enable360StereoCapture: 0
147 | protectGraphicsMemory: 0
148 | enableFrameTimingStats: 0
149 | useHDRDisplay: 0
150 | m_ColorGamuts: 00000000
151 | targetPixelDensity: 30
152 | resolutionScalingMode: 0
153 | androidSupportedAspectRatio: 1
154 | androidMaxAspectRatio: 2.1
155 | applicationIdentifier: {}
156 | buildNumber: {}
157 | AndroidBundleVersionCode: 1
158 | AndroidMinSdkVersion: 16
159 | AndroidTargetSdkVersion: 0
160 | AndroidPreferredInstallLocation: 1
161 | aotOptions:
162 | stripEngineCode: 1
163 | iPhoneStrippingLevel: 0
164 | iPhoneScriptCallOptimization: 0
165 | ForceInternetPermission: 0
166 | ForceSDCardPermission: 0
167 | CreateWallpaper: 0
168 | APKExpansionFiles: 0
169 | keepLoadedShadersAlive: 0
170 | StripUnusedMeshComponents: 1
171 | VertexChannelCompressionMask: 4054
172 | iPhoneSdkVersion: 988
173 | iOSTargetOSVersionString: 9.0
174 | tvOSSdkVersion: 0
175 | tvOSRequireExtendedGameController: 0
176 | tvOSTargetOSVersionString: 9.0
177 | uIPrerenderedIcon: 0
178 | uIRequiresPersistentWiFi: 0
179 | uIRequiresFullScreen: 1
180 | uIStatusBarHidden: 1
181 | uIExitOnSuspend: 0
182 | uIStatusBarStyle: 0
183 | iPhoneSplashScreen: {fileID: 0}
184 | iPhoneHighResSplashScreen: {fileID: 0}
185 | iPhoneTallHighResSplashScreen: {fileID: 0}
186 | iPhone47inSplashScreen: {fileID: 0}
187 | iPhone55inPortraitSplashScreen: {fileID: 0}
188 | iPhone55inLandscapeSplashScreen: {fileID: 0}
189 | iPhone58inPortraitSplashScreen: {fileID: 0}
190 | iPhone58inLandscapeSplashScreen: {fileID: 0}
191 | iPadPortraitSplashScreen: {fileID: 0}
192 | iPadHighResPortraitSplashScreen: {fileID: 0}
193 | iPadLandscapeSplashScreen: {fileID: 0}
194 | iPadHighResLandscapeSplashScreen: {fileID: 0}
195 | appleTVSplashScreen: {fileID: 0}
196 | appleTVSplashScreen2x: {fileID: 0}
197 | tvOSSmallIconLayers: []
198 | tvOSSmallIconLayers2x: []
199 | tvOSLargeIconLayers: []
200 | tvOSLargeIconLayers2x: []
201 | tvOSTopShelfImageLayers: []
202 | tvOSTopShelfImageLayers2x: []
203 | tvOSTopShelfImageWideLayers: []
204 | tvOSTopShelfImageWideLayers2x: []
205 | iOSLaunchScreenType: 0
206 | iOSLaunchScreenPortrait: {fileID: 0}
207 | iOSLaunchScreenLandscape: {fileID: 0}
208 | iOSLaunchScreenBackgroundColor:
209 | serializedVersion: 2
210 | rgba: 0
211 | iOSLaunchScreenFillPct: 100
212 | iOSLaunchScreenSize: 100
213 | iOSLaunchScreenCustomXibPath:
214 | iOSLaunchScreeniPadType: 0
215 | iOSLaunchScreeniPadImage: {fileID: 0}
216 | iOSLaunchScreeniPadBackgroundColor:
217 | serializedVersion: 2
218 | rgba: 0
219 | iOSLaunchScreeniPadFillPct: 100
220 | iOSLaunchScreeniPadSize: 100
221 | iOSLaunchScreeniPadCustomXibPath:
222 | iOSUseLaunchScreenStoryboard: 0
223 | iOSLaunchScreenCustomStoryboardPath:
224 | iOSDeviceRequirements: []
225 | iOSURLSchemes: []
226 | iOSBackgroundModes: 0
227 | iOSMetalForceHardShadows: 0
228 | metalEditorSupport: 1
229 | metalAPIValidation: 1
230 | iOSRenderExtraFrameOnPause: 0
231 | appleDeveloperTeamID:
232 | iOSManualSigningProvisioningProfileID:
233 | tvOSManualSigningProvisioningProfileID:
234 | iOSManualSigningProvisioningProfileType: 0
235 | tvOSManualSigningProvisioningProfileType: 0
236 | appleEnableAutomaticSigning: 0
237 | iOSRequireARKit: 0
238 | iOSAutomaticallyDetectAndAddCapabilities: 1
239 | appleEnableProMotion: 0
240 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
241 | templatePackageId: com.unity.template.3d@1.3.0
242 | templateDefaultScene: Assets/Scenes/SampleScene.unity
243 | AndroidTargetArchitectures: 5
244 | AndroidSplashScreenScale: 0
245 | androidSplashScreen: {fileID: 0}
246 | AndroidKeystoreName:
247 | AndroidKeyaliasName:
248 | AndroidBuildApkPerCpuArchitecture: 0
249 | AndroidTVCompatibility: 1
250 | AndroidIsGame: 1
251 | AndroidEnableTango: 0
252 | androidEnableBanner: 1
253 | androidUseLowAccuracyLocation: 0
254 | m_AndroidBanners:
255 | - width: 320
256 | height: 180
257 | banner: {fileID: 0}
258 | androidGamepadSupportLevel: 0
259 | resolutionDialogBanner: {fileID: 0}
260 | m_BuildTargetIcons: []
261 | m_BuildTargetPlatformIcons: []
262 | m_BuildTargetBatching:
263 | - m_BuildTarget: Standalone
264 | m_StaticBatching: 1
265 | m_DynamicBatching: 0
266 | - m_BuildTarget: tvOS
267 | m_StaticBatching: 1
268 | m_DynamicBatching: 0
269 | - m_BuildTarget: Android
270 | m_StaticBatching: 1
271 | m_DynamicBatching: 0
272 | - m_BuildTarget: iPhone
273 | m_StaticBatching: 1
274 | m_DynamicBatching: 0
275 | - m_BuildTarget: WebGL
276 | m_StaticBatching: 0
277 | m_DynamicBatching: 0
278 | m_BuildTargetGraphicsAPIs:
279 | - m_BuildTarget: AndroidPlayer
280 | m_APIs: 0b00000008000000
281 | m_Automatic: 1
282 | - m_BuildTarget: iOSSupport
283 | m_APIs: 10000000
284 | m_Automatic: 1
285 | - m_BuildTarget: AppleTVSupport
286 | m_APIs: 10000000
287 | m_Automatic: 0
288 | - m_BuildTarget: WebGLSupport
289 | m_APIs: 0b000000
290 | m_Automatic: 1
291 | m_BuildTargetVRSettings:
292 | - m_BuildTarget: Standalone
293 | m_Enabled: 0
294 | m_Devices:
295 | - Oculus
296 | - OpenVR
297 | m_BuildTargetEnableVuforiaSettings: []
298 | openGLRequireES31: 0
299 | openGLRequireES31AEP: 0
300 | m_TemplateCustomTags: {}
301 | mobileMTRendering:
302 | Android: 1
303 | iPhone: 1
304 | tvOS: 1
305 | m_BuildTargetGroupLightmapEncodingQuality: []
306 | m_BuildTargetGroupLightmapSettings: []
307 | playModeTestRunnerEnabled: 0
308 | runPlayModeTestAsEditModeTest: 0
309 | actionOnDotNetUnhandledException: 1
310 | enableInternalProfiler: 0
311 | logObjCUncaughtExceptions: 1
312 | enableCrashReportAPI: 0
313 | cameraUsageDescription:
314 | locationUsageDescription:
315 | microphoneUsageDescription:
316 | switchNetLibKey:
317 | switchSocketMemoryPoolSize: 6144
318 | switchSocketAllocatorPoolSize: 128
319 | switchSocketConcurrencyLimit: 14
320 | switchScreenResolutionBehavior: 2
321 | switchUseCPUProfiler: 0
322 | switchApplicationID: 0x01004b9000490000
323 | switchNSODependencies:
324 | switchTitleNames_0:
325 | switchTitleNames_1:
326 | switchTitleNames_2:
327 | switchTitleNames_3:
328 | switchTitleNames_4:
329 | switchTitleNames_5:
330 | switchTitleNames_6:
331 | switchTitleNames_7:
332 | switchTitleNames_8:
333 | switchTitleNames_9:
334 | switchTitleNames_10:
335 | switchTitleNames_11:
336 | switchTitleNames_12:
337 | switchTitleNames_13:
338 | switchTitleNames_14:
339 | switchPublisherNames_0:
340 | switchPublisherNames_1:
341 | switchPublisherNames_2:
342 | switchPublisherNames_3:
343 | switchPublisherNames_4:
344 | switchPublisherNames_5:
345 | switchPublisherNames_6:
346 | switchPublisherNames_7:
347 | switchPublisherNames_8:
348 | switchPublisherNames_9:
349 | switchPublisherNames_10:
350 | switchPublisherNames_11:
351 | switchPublisherNames_12:
352 | switchPublisherNames_13:
353 | switchPublisherNames_14:
354 | switchIcons_0: {fileID: 0}
355 | switchIcons_1: {fileID: 0}
356 | switchIcons_2: {fileID: 0}
357 | switchIcons_3: {fileID: 0}
358 | switchIcons_4: {fileID: 0}
359 | switchIcons_5: {fileID: 0}
360 | switchIcons_6: {fileID: 0}
361 | switchIcons_7: {fileID: 0}
362 | switchIcons_8: {fileID: 0}
363 | switchIcons_9: {fileID: 0}
364 | switchIcons_10: {fileID: 0}
365 | switchIcons_11: {fileID: 0}
366 | switchIcons_12: {fileID: 0}
367 | switchIcons_13: {fileID: 0}
368 | switchIcons_14: {fileID: 0}
369 | switchSmallIcons_0: {fileID: 0}
370 | switchSmallIcons_1: {fileID: 0}
371 | switchSmallIcons_2: {fileID: 0}
372 | switchSmallIcons_3: {fileID: 0}
373 | switchSmallIcons_4: {fileID: 0}
374 | switchSmallIcons_5: {fileID: 0}
375 | switchSmallIcons_6: {fileID: 0}
376 | switchSmallIcons_7: {fileID: 0}
377 | switchSmallIcons_8: {fileID: 0}
378 | switchSmallIcons_9: {fileID: 0}
379 | switchSmallIcons_10: {fileID: 0}
380 | switchSmallIcons_11: {fileID: 0}
381 | switchSmallIcons_12: {fileID: 0}
382 | switchSmallIcons_13: {fileID: 0}
383 | switchSmallIcons_14: {fileID: 0}
384 | switchManualHTML:
385 | switchAccessibleURLs:
386 | switchLegalInformation:
387 | switchMainThreadStackSize: 1048576
388 | switchPresenceGroupId:
389 | switchLogoHandling: 0
390 | switchReleaseVersion: 0
391 | switchDisplayVersion: 1.0.0
392 | switchStartupUserAccount: 0
393 | switchTouchScreenUsage: 0
394 | switchSupportedLanguagesMask: 0
395 | switchLogoType: 0
396 | switchApplicationErrorCodeCategory:
397 | switchUserAccountSaveDataSize: 0
398 | switchUserAccountSaveDataJournalSize: 0
399 | switchApplicationAttribute: 0
400 | switchCardSpecSize: -1
401 | switchCardSpecClock: -1
402 | switchRatingsMask: 0
403 | switchRatingsInt_0: 0
404 | switchRatingsInt_1: 0
405 | switchRatingsInt_2: 0
406 | switchRatingsInt_3: 0
407 | switchRatingsInt_4: 0
408 | switchRatingsInt_5: 0
409 | switchRatingsInt_6: 0
410 | switchRatingsInt_7: 0
411 | switchRatingsInt_8: 0
412 | switchRatingsInt_9: 0
413 | switchRatingsInt_10: 0
414 | switchRatingsInt_11: 0
415 | switchLocalCommunicationIds_0:
416 | switchLocalCommunicationIds_1:
417 | switchLocalCommunicationIds_2:
418 | switchLocalCommunicationIds_3:
419 | switchLocalCommunicationIds_4:
420 | switchLocalCommunicationIds_5:
421 | switchLocalCommunicationIds_6:
422 | switchLocalCommunicationIds_7:
423 | switchParentalControl: 0
424 | switchAllowsScreenshot: 1
425 | switchAllowsVideoCapturing: 1
426 | switchAllowsRuntimeAddOnContentInstall: 0
427 | switchDataLossConfirmation: 0
428 | switchUserAccountLockEnabled: 0
429 | switchSystemResourceMemory: 16777216
430 | switchSupportedNpadStyles: 3
431 | switchNativeFsCacheSize: 32
432 | switchIsHoldTypeHorizontal: 0
433 | switchSupportedNpadCount: 8
434 | switchSocketConfigEnabled: 0
435 | switchTcpInitialSendBufferSize: 32
436 | switchTcpInitialReceiveBufferSize: 64
437 | switchTcpAutoSendBufferSizeMax: 256
438 | switchTcpAutoReceiveBufferSizeMax: 256
439 | switchUdpSendBufferSize: 9
440 | switchUdpReceiveBufferSize: 42
441 | switchSocketBufferEfficiency: 4
442 | switchSocketInitializeEnabled: 1
443 | switchNetworkInterfaceManagerInitializeEnabled: 1
444 | switchPlayerConnectionEnabled: 1
445 | ps4NPAgeRating: 12
446 | ps4NPTitleSecret:
447 | ps4NPTrophyPackPath:
448 | ps4ParentalLevel: 11
449 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000
450 | ps4Category: 0
451 | ps4MasterVersion: 01.00
452 | ps4AppVersion: 01.00
453 | ps4AppType: 0
454 | ps4ParamSfxPath:
455 | ps4VideoOutPixelFormat: 0
456 | ps4VideoOutInitialWidth: 1920
457 | ps4VideoOutBaseModeInitialWidth: 1920
458 | ps4VideoOutReprojectionRate: 60
459 | ps4PronunciationXMLPath:
460 | ps4PronunciationSIGPath:
461 | ps4BackgroundImagePath:
462 | ps4StartupImagePath:
463 | ps4StartupImagesFolder:
464 | ps4IconImagesFolder:
465 | ps4SaveDataImagePath:
466 | ps4SdkOverride:
467 | ps4BGMPath:
468 | ps4ShareFilePath:
469 | ps4ShareOverlayImagePath:
470 | ps4PrivacyGuardImagePath:
471 | ps4NPtitleDatPath:
472 | ps4RemotePlayKeyAssignment: -1
473 | ps4RemotePlayKeyMappingDir:
474 | ps4PlayTogetherPlayerCount: 0
475 | ps4EnterButtonAssignment: 1
476 | ps4ApplicationParam1: 0
477 | ps4ApplicationParam2: 0
478 | ps4ApplicationParam3: 0
479 | ps4ApplicationParam4: 0
480 | ps4DownloadDataSize: 0
481 | ps4GarlicHeapSize: 2048
482 | ps4ProGarlicHeapSize: 2560
483 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ
484 | ps4pnSessions: 1
485 | ps4pnPresence: 1
486 | ps4pnFriends: 1
487 | ps4pnGameCustomData: 1
488 | playerPrefsSupport: 0
489 | enableApplicationExit: 0
490 | resetTempFolder: 1
491 | restrictedAudioUsageRights: 0
492 | ps4UseResolutionFallback: 0
493 | ps4ReprojectionSupport: 0
494 | ps4UseAudio3dBackend: 0
495 | ps4SocialScreenEnabled: 0
496 | ps4ScriptOptimizationLevel: 0
497 | ps4Audio3dVirtualSpeakerCount: 14
498 | ps4attribCpuUsage: 0
499 | ps4PatchPkgPath:
500 | ps4PatchLatestPkgPath:
501 | ps4PatchChangeinfoPath:
502 | ps4PatchDayOne: 0
503 | ps4attribUserManagement: 0
504 | ps4attribMoveSupport: 0
505 | ps4attrib3DSupport: 0
506 | ps4attribShareSupport: 0
507 | ps4attribExclusiveVR: 0
508 | ps4disableAutoHideSplash: 0
509 | ps4videoRecordingFeaturesUsed: 0
510 | ps4contentSearchFeaturesUsed: 0
511 | ps4attribEyeToEyeDistanceSettingVR: 0
512 | ps4IncludedModules: []
513 | monoEnv:
514 | splashScreenBackgroundSourceLandscape: {fileID: 0}
515 | splashScreenBackgroundSourcePortrait: {fileID: 0}
516 | spritePackerPolicy:
517 | webGLMemorySize: 256
518 | webGLExceptionSupport: 1
519 | webGLNameFilesAsHashes: 0
520 | webGLDataCaching: 1
521 | webGLDebugSymbols: 0
522 | webGLEmscriptenArgs:
523 | webGLModulesDirectory:
524 | webGLTemplate: APPLICATION:Default
525 | webGLAnalyzeBuildSize: 0
526 | webGLUseEmbeddedResources: 0
527 | webGLCompressionFormat: 1
528 | webGLLinkerTarget: 1
529 | webGLThreadsSupport: 0
530 | scriptingDefineSymbols: {}
531 | platformArchitecture: {}
532 | scriptingBackend: {}
533 | il2cppCompilerConfiguration: {}
534 | managedStrippingLevel: {}
535 | incrementalIl2cppBuild: {}
536 | allowUnsafeCode: 0
537 | additionalIl2CppArgs:
538 | scriptingRuntimeVersion: 1
539 | apiCompatibilityLevelPerPlatform: {}
540 | m_RenderingPath: 1
541 | m_MobileRenderingPath: 1
542 | metroPackageName: Template_3D
543 | metroPackageVersion:
544 | metroCertificatePath:
545 | metroCertificatePassword:
546 | metroCertificateSubject:
547 | metroCertificateIssuer:
548 | metroCertificateNotAfter: 0000000000000000
549 | metroApplicationDescription: Template_3D
550 | wsaImages: {}
551 | metroTileShortName:
552 | metroTileShowName: 0
553 | metroMediumTileShowName: 0
554 | metroLargeTileShowName: 0
555 | metroWideTileShowName: 0
556 | metroSupportStreamingInstall: 0
557 | metroLastRequiredScene: 0
558 | metroDefaultTileSize: 1
559 | metroTileForegroundText: 2
560 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0}
561 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628,
562 | a: 1}
563 | metroSplashScreenUseBackgroundColor: 0
564 | platformCapabilities: {}
565 | metroTargetDeviceFamilies: {}
566 | metroFTAName:
567 | metroFTAFileTypes: []
568 | metroProtocolName:
569 | metroCompilationOverrides: 1
570 | XboxOneProductId:
571 | XboxOneUpdateKey:
572 | XboxOneSandboxId:
573 | XboxOneContentId:
574 | XboxOneTitleId:
575 | XboxOneSCId:
576 | XboxOneGameOsOverridePath:
577 | XboxOnePackagingOverridePath:
578 | XboxOneAppManifestOverridePath:
579 | XboxOneVersion: 1.0.0.0
580 | XboxOnePackageEncryption: 0
581 | XboxOnePackageUpdateGranularity: 2
582 | XboxOneDescription:
583 | XboxOneLanguage:
584 | - enus
585 | XboxOneCapability: []
586 | XboxOneGameRating: {}
587 | XboxOneIsContentPackage: 0
588 | XboxOneEnableGPUVariability: 1
589 | XboxOneSockets: {}
590 | XboxOneSplashScreen: {fileID: 0}
591 | XboxOneAllowedProductIds: []
592 | XboxOnePersistentLocalStorageSize: 0
593 | XboxOneXTitleMemory: 8
594 | xboxOneScriptCompiler: 1
595 | XboxOneOverrideIdentityName:
596 | vrEditorSettings:
597 | daydream:
598 | daydreamIconForeground: {fileID: 0}
599 | daydreamIconBackground: {fileID: 0}
600 | cloudServicesEnabled:
601 | UNet: 1
602 | luminIcon:
603 | m_Name:
604 | m_ModelFolderPath:
605 | m_PortalFolderPath:
606 | luminCert:
607 | m_CertPath:
608 | m_PrivateKeyPath:
609 | luminIsChannelApp: 0
610 | luminVersion:
611 | m_VersionCode: 1
612 | m_VersionName:
613 | facebookSdkVersion: 7.9.4
614 | facebookAppId:
615 | facebookCookies: 1
616 | facebookLogging: 1
617 | facebookStatus: 1
618 | facebookXfbml: 0
619 | facebookFrictionlessRequests: 1
620 | apiCompatibilityLevel: 6
621 | cloudProjectId:
622 | framebufferDepthMemorylessMode: 0
623 | projectName:
624 | organizationId:
625 | cloudEnabled: 0
626 | enableNativePlatformBackendsForNewInputSystem: 0
627 | disableOldInputManagerSupport: 0
628 | legacyClampBlendShapeWeights: 0
629 |
--------------------------------------------------------------------------------