├── README.md └── yaml └── Yaml ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── EditorBuildSettings.asset ├── NetworkManager.asset ├── TimeManager.asset ├── AudioManager.asset ├── EditorSettings.asset ├── TagManager.asset ├── DynamicsManager.asset ├── UnityConnectSettings.asset ├── Physics2DSettings.asset ├── NavMeshAreas.asset ├── GraphicsSettings.asset ├── QualitySettings.asset ├── InputManager.asset └── ProjectSettings.asset └── Assets ├── test.unity.meta ├── Test.cs.meta ├── YAML.cs.meta ├── SingletonBase.cs.meta ├── ThreadBuffer.cs.meta ├── Editor ├── NavyUIHelper.cs.meta └── NavyUIHelper.cs ├── YAMLClassIDReference.cs.meta ├── Test.cs ├── SingletonBase.cs ├── ThreadBuffer.cs ├── YAMLClassIDReference.cs ├── YAML.cs └── test.unity /README.md: -------------------------------------------------------------------------------- 1 | # yaml 2 | 目前还未完成,有兴趣可以一起研究。提交分支号,没问题可以合并。 -------------------------------------------------------------------------------- /yaml/Yaml/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.3f1 2 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b44d498967f33ee47b2e45d62f9b150e 3 | timeCreated: 1511848554 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /yaml/Yaml/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.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c5fb6a982960fd4285cfe1773af15d7 3 | timeCreated: 1511848559 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/YAML.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e40a2c7ef23e614690827545f8b5962 3 | timeCreated: 1511846375 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/SingletonBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e6f48ce492d2ca4d909fccd3a894669 3 | timeCreated: 1511856203 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/ThreadBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82d107e8551fac44d877ade7a9cb5650 3 | timeCreated: 1511845570 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/Editor/NavyUIHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 283709c3c3124594d8700aec107c32f7 3 | timeCreated: 1511921280 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/YAMLClassIDReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ef505d35bfbf654ab6aa262cdddacf9 3 | timeCreated: 1511849400 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/Test.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class Test : MonoBehaviour { 6 | public GameObject TestButton; 7 | public GameObject hhhhText; 8 | string outPut = ""; 9 | // Use this for initialization 10 | void Start () { 11 | 12 | } 13 | 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /yaml/Yaml/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: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /yaml/Yaml/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: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_DefaultBehaviorMode: 0 10 | m_SpritePackerMode: 0 11 | m_SpritePackerPaddingPower: 1 12 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 13 | m_ProjectGenerationRootNamespace: 14 | m_UserGeneratedProjectSuffix: 15 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/SingletonBase.cs: -------------------------------------------------------------------------------- 1 | /* Created by NavyZhang 2 | * mail:710605420@qq.com 3 | * Welcome to exchange ideas 4 | */ 5 | using UnityEngine; 6 | using System.Collections; 7 | 8 | namespace Common 9 | { 10 | public abstract class SingletonBase 11 | where T : SingletonBase, new() 12 | { 13 | private static T _instance = new T(); 14 | public static T Instance 15 | { 16 | get 17 | { 18 | return _instance; 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | - 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 | -------------------------------------------------------------------------------- /yaml/Yaml/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: 3 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_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_Enabled: 0 14 | m_CaptureEditorExceptions: 1 15 | UnityPurchasingSettings: 16 | m_Enabled: 0 17 | m_TestMode: 0 18 | UnityAnalyticsSettings: 19 | m_Enabled: 0 20 | m_InitializeOnStartup: 1 21 | m_TestMode: 0 22 | m_TestEventUrl: 23 | m_TestConfigUrl: 24 | UnityAdsSettings: 25 | m_Enabled: 0 26 | m_InitializeOnStartup: 1 27 | m_TestMode: 0 28 | m_EnabledPlatforms: 4294967295 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | PerformanceReportingSettings: 32 | m_Enabled: 0 33 | -------------------------------------------------------------------------------- /yaml/Yaml/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: 3 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_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_CallbacksOnDisable: 1 26 | m_AlwaysShowColliders: 0 27 | m_ShowColliderSleep: 1 28 | m_ShowColliderContacts: 0 29 | m_ShowColliderAABB: 0 30 | m_ContactArrowScale: 0.2 31 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 32 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 33 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 34 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 35 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 36 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | m_SettingNames: 89 | - Humanoid 90 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/ThreadBuffer.cs: -------------------------------------------------------------------------------- 1 | /* Created by NavyZhang 2 | * mail:710605420@qq.com 3 | * Welcome to exchange ideas 4 | */ 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using UnityEngine; 8 | using System.Threading; 9 | using System; 10 | 11 | public class Buffer 12 | { 13 | public int id; 14 | public byte[] data; 15 | } 16 | 17 | public class ThreadBuffer 18 | { 19 | static object lock_obj = new object(); 20 | static List BufferList = new List(); 21 | static List BufferDataList = new List(); 22 | 23 | public static byte[] GetBuffer() 24 | { 25 | int id = Thread.CurrentThread.ManagedThreadId; 26 | lock(lock_obj) 27 | { 28 | for(int i =0;i< BufferList.Count;++i) 29 | { 30 | if(BufferList[i].id == id) 31 | { 32 | return BufferList[i].data; 33 | } 34 | } 35 | } 36 | Buffer buffer = new Buffer(); 37 | buffer.id = id; 38 | buffer.data = AllocBuffer(); 39 | 40 | lock(lock_obj) 41 | { 42 | BufferList.Add(buffer); 43 | } 44 | return buffer.data; 45 | } 46 | 47 | public static void ClearAllBuffer() 48 | { 49 | lock(lock_obj) 50 | { 51 | for(int i = 0;i < BufferList.Count;++i) 52 | { 53 | BufferDataList.Add(BufferList[i].data); 54 | } 55 | BufferDataList.Clear(); 56 | } 57 | } 58 | 59 | public static void DestroyAllBuffer() 60 | { 61 | ClearAllBuffer(); 62 | lock(lock_obj) 63 | { 64 | BufferDataList.Clear(); 65 | } 66 | } 67 | 68 | static byte[] AllocBuffer() 69 | { 70 | byte[] buffer = null; 71 | lock(lock_obj) 72 | { 73 | if(BufferDataList.Count > 0) 74 | { 75 | int id = BufferDataList.Count - 1; 76 | buffer = BufferDataList[id]; 77 | BufferDataList.RemoveAt(id); 78 | } 79 | } 80 | 81 | if(buffer == null) 82 | { 83 | #if UNITY_EDITOR 84 | return new byte[50 * 1048576]; 85 | #else 86 | return new byte[5 * 1048576]; 87 | #endif 88 | } 89 | return buffer; 90 | } 91 | 92 | static void FreeBuffer(byte[] buffer) 93 | { 94 | if (buffer == null) return; 95 | lock(lock_obj) 96 | { 97 | BufferDataList.Add(buffer); 98 | } 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /yaml/Yaml/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: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 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 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 3 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 3 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 1 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 3 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 3 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 150 147 | shadowNearPlaneOffset: 3 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | Nintendo 3DS: 5 168 | PS4: 5 169 | PSM: 5 170 | PSP2: 2 171 | Samsung TV: 2 172 | Standalone: 5 173 | Switch: 5 174 | Tizen: 2 175 | Web: 5 176 | WebGL: 3 177 | WiiU: 5 178 | Windows Store Apps: 5 179 | XboxOne: 5 180 | iPhone: 2 181 | tvOS: 2 182 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/Editor/NavyUIHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | public class NavyUIHelper : EditorWindow { 7 | 8 | // [MenuItem("Window/NavyUIHelper %r")] 9 | // private static void GenerateUI() 10 | // { 11 | // foreach (GameObject obj in Object.FindObjectsOfType(typeof(GameObject))) { 12 | // Debug.Log (obj.name); 13 | // UIHelper helper = obj.GetComponent (); 14 | // if (null != helper) 15 | // helper.GenerateUI (); 16 | // } 17 | // } 18 | 19 | 20 | 21 | [MenuItem(@"Tool/CopySceneOrPrefabTest #&s")] 22 | private static void GenerateCopySceneOrPrefabTest() 23 | { 24 | string outPut = ""; 25 | YAML.Node node = YAML.Load(Application.dataPath + "/prefabs/Canvas.prefab"); 26 | 27 | 28 | //test 1 29 | // List lstAttributeNode = node.AttributeForGenerateCode();//将要产生在代码内的对象,未筛选 30 | // List ScriptNodes = new List(); 31 | // node.Find("MonoBehaviour", ScriptNodes); 32 | // if (ScriptNodes.Count == 0) 33 | // return; 34 | // foreach (var sn in ScriptNodes) 35 | // { 36 | // foreach (var n in sn.Children) 37 | // { 38 | // if (n.Value != null) 39 | // { 40 | // Dictionary valueNode = YAML.DeserializeValue(n.Value); 41 | // foreach (KeyValuePair kvp in valueNode) 42 | // { 43 | // Debug.Log(string.Format("Key:{0}; Value:{1}", kvp.Value.Name, kvp.Value.Value)); 44 | // } 45 | // } 46 | // } 47 | // 48 | // } 49 | 50 | 51 | //test 2 52 | /* 53 | * 54 | --- !u!114 &360487655 55 | MonoBehaviour: 56 | m_ObjectHideFlags: 0 57 | m_PrefabParentObject: {fileID: 0} 58 | m_PrefabInternal: {fileID: 0} 59 | m_GameObject: {fileID: 360487649} 60 | m_Enabled: 1 61 | m_EditorHideFlags: 0 62 | m_Script: {fileID: 11500000, guid: 1c5fb6a982960fd4285cfe1773af15d7, type: 3} 63 | m_Name: 64 | m_EditorClassIdentifier: 65 | TestButton: {fileID: 0} 66 | hhhhText: {fileID: 0} 67 | */ 68 | YAML.Node nodeNew = new YAML.Node(); 69 | nodeNew.Name = "--- !u!114 &114437434465559884"; 70 | nodeNew.Value = null; 71 | node.Children.Add(nodeNew); 72 | 73 | YAML.Node nodeScriptNew = new YAML.Node(); 74 | nodeScriptNew.Name = "MonoBehaviour"; 75 | nodeScriptNew.Value = " "; 76 | 77 | nodeScriptNew.AddNode("m_ObjectHideFlags", " 1", 2, "114437434465559884", "");//fileID在非脚本属性里是随机的,只要保持唯一即可,格式是定死的。 78 | nodeScriptNew.AddNode("m_PrefabParentObject", " {fileID: 0}", 2, "114437434465559884", ""); 79 | nodeScriptNew.AddNode("m_PrefabInternal", " {fileID: 100100000}", 2, "114437434465559884", ""); 80 | nodeScriptNew.AddNode("m_GameObject", " {fileID: 1659991782575188}", 2, "114437434465559884", ""); //此处是挂载对象 预设走m_RootGameObject属性。此外,需要在m_RootGameObject fileid归属上加上component,component的fileid与这个脚本的fileid保持一致 81 | nodeScriptNew.AddNode("m_Enabled", " 1", 2, "114437434465559884", ""); 82 | nodeScriptNew.AddNode("m_EditorHideFlags", " 0", 2, "114437434465559884", ""); 83 | nodeScriptNew.AddNode("m_Script", " {fileID: 11500000, guid: 1c5fb6a982960fd4285cfe1773af15d7, type: 3}", 2, "114437434465559884", ""); 84 | nodeScriptNew.AddNode("m_Name", " ", 2, "114437434465559884", ""); 85 | nodeScriptNew.AddNode("m_EditorClassIdentifier", " ", 2, "114437434465559884", ""); 86 | nodeScriptNew.AddNode("TestButton", " {fileID: 0}", 2, "114437434465559884", ""); 87 | nodeScriptNew.AddNode("hhhhText", " {fileID: 0}", 2, "114437434465559884", ""); 88 | node.Children.Add(nodeScriptNew); 89 | 90 | foreach (var sn in node.Children) 91 | { 92 | if(sn.RootFileID == "1659991782575188") 93 | { 94 | 95 | } 96 | } 97 | 98 | outPut = YAML.Instance.Deserialize(node); 99 | YAML.Instance.Write(Application.dataPath + "/prefabs/CanvasCopy.prefab", outPut); 100 | } 101 | //添加菜单 102 | [MenuItem(@"Tool/NavyUIHelper #&r")] 103 | 104 | public static void GetTransforms() 105 | { 106 | Dictionary dic = new Dictionary(); 107 | //transforms是Selection类的静态字段,其返回的是选中的对象的Transform 108 | Transform[] transforms = Selection.transforms; 109 | 110 | if(transforms.Length == 0) 111 | { 112 | Debug.Log("请选择需要生成UI类的预设或者UI根节点(在Hierachy窗口上选取)"); 113 | } 114 | //将选中的对象的postion保存在字典中 115 | for (int i = 0; i < transforms.Length; i++) 116 | { 117 | dic.Add(transforms[i].name, transforms[i].position); 118 | } 119 | 120 | //将字典中的信息打印出来 121 | // foreach (Transform item in transforms) 122 | // { 123 | // Debug.Log(item.name + ":" + item.position); 124 | // UIHelper helper = item.gameObject.AddComponent(); 125 | // if (null != helper) 126 | // { 127 | // helper.NGUI = true; 128 | // helper.className = item.name + "Base"; 129 | // helper.parentName = "WindowBase"; 130 | // helper.GenerateUI(); 131 | // } 132 | // DestroyImmediate(item.gameObject.GetComponent()); 133 | // } 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /yaml/Yaml/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 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/YAMLClassIDReference.cs: -------------------------------------------------------------------------------- 1 | /* Created by NavyZhang 2 | * mail:710605420@qq.com 3 | * Welcome to exchange ideas 4 | */ 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using UnityEngine; 8 | 9 | public class YAMLClassIDReference 10 | { 11 | public static string GetClassIDReference(string id) 12 | { 13 | switch(id) 14 | { 15 | case "1053": return "ASTCImporter"; 16 | case "229": return "AnchoredJoint2D"; 17 | case "111": return "Animation"; 18 | case "74": return "AnimationClip"; 19 | case "95": return "Animator"; 20 | case "91": return "AnimatorController"; 21 | case "221": return "AnimatorOverrideController"; 22 | case "1102": return "AnimatorState"; 23 | case "1107": return "AnimatorStateMachine"; 24 | case "1101": return "AnimatorStateTransition"; 25 | case "1111": return "AnimatorTransitionBase"; 26 | case "1109": return "AnimatorTransition"; 27 | case "1049": return "AnnotationManager"; 28 | case "249": return "AreaEffector2D"; 29 | case "142": return "AssetBundle"; 30 | case "290": return "AssetBundleManifest"; 31 | case "1004": return "AssetDatabase"; 32 | case "1003": return "AssetImporter"; 33 | case "1028": return "AssetMetaData"; 34 | case "1037": return "AssetServerCache"; 35 | case "180": return "AudioBehaviour"; 36 | case "166": return "AudioChorusFilter"; 37 | case "83": return "AudioClip"; 38 | case "170": return "AudioDistortionFilter"; 39 | case "168": return "AudioEchoFilter"; 40 | case "181": return "AudioFilter"; 41 | case "165": return "AudioHighPassFilter"; 42 | case "1020": return "AudioImporter"; 43 | case "81": return "AudioListener"; 44 | case "169": return "AudioLowPassFilter"; 45 | case "11": return "AudioManager"; 46 | case "240": return "AudioMixer"; 47 | case "241": return "AudioMixerController"; 48 | case "244": return "AudioMixerEffectController"; 49 | case "273": return "AudioMixerGroup"; 50 | case "243": return "AudioMixerGroupController"; 51 | case "272": return "AudioMixerSnapshot"; 52 | case "245": return "AudioMixerSnapshotController"; 53 | case "164": return "AudioReverbFilter"; 54 | case "167": return "AudioReverbZone"; 55 | case "82": return "AudioSource"; 56 | case "90": return "Avatar"; 57 | case "1011": return "AvatarMask"; 58 | case "110": return "BaseAnimationTrack"; 59 | case "8": return "Behaviour"; 60 | case "226": return "BillboardAsset"; 61 | case "227": return "BillboardRenderer"; 62 | case "206": return "BlendTree"; 63 | case "65": return "BoxCollider"; 64 | case "61": return "BoxCollider2D"; 65 | case "141": return "BuildSettings"; 66 | case "214": return "CachedSpriteAtlas"; 67 | case "20": return "Camera"; 68 | case "223": return "Canvas"; 69 | case "225": return "CanvasGroup"; 70 | case "222": return "CanvasRenderer"; 71 | case "136": return "CapsuleCollider"; 72 | case "109": return "CGProgram"; 73 | case "143": return "CharacterController"; 74 | case "144": return "CharacterJoint"; 75 | case "58": return "CircleCollider2D"; 76 | case "183": return "Cloth"; 77 | case "161": return "ClothRenderer"; 78 | case "56": return "Collider"; 79 | case "53": return "Collider2D"; 80 | case "2": return "Component"; 81 | case "72": return "ComputeShader"; 82 | case "1008": return "ComputeShaderImporter"; 83 | case "153": return "ConfigurableJoint"; 84 | case "75": return "ConstantForce"; 85 | case "247": return "ConstantForce2D"; 86 | case "89": return "Cubemap"; 87 | case "1046": return "DDSImporter"; 88 | case "1029": return "DefaultAsset"; 89 | case "1030": return "DefaultImporter"; 90 | case "98": return "DelayedCallManager"; 91 | case "232": return "DistanceJoint2D"; 92 | case "68": return "EdgeCollider2D"; 93 | case "1045": return "EditorBuildSettings"; 94 | case "18": return "EditorExtension"; 95 | case "1002": return "EditorExtensionImpl"; 96 | case "159": return "EditorSettings"; 97 | case "1051": return "EditorUserBuildSettings"; 98 | case "162": return "EditorUserSettings"; 99 | case "248": return "Effector2D"; 100 | case "15": return "EllipsoidParticleEmitter"; 101 | case "1041": return "FBXImporter"; 102 | case "138": return "FixedJoint"; 103 | case "121": return "Flare"; 104 | case "124": return "FlareLayer"; 105 | case "128": return "Font"; 106 | case "9": return "GameManager"; 107 | case "1": return "GameObject"; 108 | case "6": return "GlobalGameManager"; 109 | case "30": return "GraphicsSettings"; 110 | case "1027": return "GUIDSerializer"; 111 | case "133": return "GUIElement"; 112 | case "92": return "GUILayer"; 113 | case "132": return "GUIText"; 114 | case "131": return "GUITexture"; 115 | case "122": return "Halo"; 116 | case "125": return "HaloLayer"; 117 | case "127": return "HaloManager"; 118 | case "1026": return "HierarchyState"; 119 | case "59": return "HingeJoint"; 120 | case "233": return "HingeJoint2D"; 121 | case "1105": return "HumanTemplate"; 122 | case "13": return "InputManager"; 123 | case "1048": return "InspectorExpandedState"; 124 | case "160": return "InteractiveCloth"; 125 | case "57": return "Joint"; 126 | case "230": return "Joint2D"; 127 | case "1054": return "KTXImporter"; 128 | case "123": return "LensFlare"; 129 | case "3": return "LevelGameManager"; 130 | case "1038": return "LibraryAssetImporter"; 131 | case "108": return "Light"; 132 | case "1113": return "LightmapParameters"; 133 | case "157": return "LightmapSettings"; 134 | case "1120": return "LightmapSnapshot"; 135 | case "220": return "LightProbeGroup"; 136 | case "258": return "LightProbes"; 137 | case "197": return "LightProbesLegacy"; 138 | case "120": return "LineRenderer"; 139 | case "205": return "LODGroup"; 140 | case "155": return "MasterServerInterface"; 141 | case "21": return "Material"; 142 | case "43": return "Mesh"; 143 | case "1005": return "Mesh3DSImporter"; 144 | case "64": return "MeshCollider"; 145 | case "33": return "MeshFilter"; 146 | case "87": return "MeshParticleEmitter"; 147 | case "23": return "MeshRenderer"; 148 | case "1040": return "ModelImporter"; 149 | case "114": return "MonoBehaviour"; 150 | case "1035": return "MonoImporter"; 151 | case "116": return "MonoManager"; 152 | case "115": return "MonoScript"; 153 | case "207": return "Motion"; 154 | case "1044": return "MovieImporter"; 155 | case "152": return "MovieTexture"; 156 | case "130": return "NamedObject"; 157 | case "1034": return "NativeFormatImporter"; 158 | case "195": return "NavMeshAgent"; 159 | case "126": return "NavMeshAreas"; 160 | case "238": return "NavMeshData"; 161 | case "194": return "NavMeshObsolete"; 162 | case "208": return "NavMeshObstacle"; 163 | case "196": return "NavMeshSettings"; 164 | case "149": return "NetworkManager"; 165 | case "148": return "NetworkView"; 166 | case "118": return "NewAnimationTrack"; 167 | case "192": return "OcclusionArea"; 168 | case "41": return "OcclusionPortal"; 169 | case "191": return "OffMeshLink"; 170 | case "12": return "ParticleAnimator"; 171 | case "88": return "ParticleEmitter"; 172 | case "26": return "ParticleRenderer"; 173 | case "198": return "ParticleSystem"; 174 | case "199": return "ParticleSystemRenderer"; 175 | case "134": return "PhysicMaterial"; 176 | case "51": return "Physics2DManager"; 177 | case "19": return "Physics2DSettings"; 178 | case "55": return "PhysicsManager"; 179 | case "62": return "PhysicsMaterial2D"; 180 | case "246": return "PhysicsUpdateBehaviour2D"; 181 | case "17": return "Pipeline"; 182 | case "251": return "PlatformEffector2D"; 183 | case "129": return "PlayerSettings"; 184 | case "1050": return "PluginImporter"; 185 | case "250": return "PointEffector2D"; 186 | case "60": return "PolygonCollider2D"; 187 | case "1001": return "Prefab"; 188 | case "150": return "PreloadData"; 189 | case "1108": return "PreviewAssetType"; 190 | case "185": return "ProceduralMaterial"; 191 | case "186": return "ProceduralTexture"; 192 | case "119": return "Projector"; 193 | case "1052": return "PVRImporter"; 194 | case "47": return "QualitySettings"; 195 | case "140": return "RaycastCollider"; 196 | case "224": return "RectTransform"; 197 | case "215": return "ReflectionProbe"; 198 | case "216": return "ReflectionProbes"; 199 | case "25": return "Renderer"; 200 | case "104": return "RenderSettings"; 201 | case "84": return "RenderTexture"; 202 | case "147": return "ResourceManager"; 203 | case "54": return "Rigidbody"; 204 | case "50": return "Rigidbody2D"; 205 | case "93": return "RuntimeAnimatorController"; 206 | case "271": return "SampleClip"; 207 | case "1032": return "SceneAsset"; 208 | case "29": return "SceneSettings"; 209 | case "94": return "ScriptMapper"; 210 | case "48": return "Shader"; 211 | case "1007": return "ShaderImporter"; 212 | case "200": return "ShaderVariantCollection"; 213 | case "163": return "SkinnedCloth"; 214 | case "137": return "SkinnedMeshRenderer"; 215 | case "45": return "Skybox"; 216 | case "234": return "SliderJoint2D"; 217 | case "171": return "SparseTexture"; 218 | case "135": return "SphereCollider"; 219 | case "145": return "SpringJoint"; 220 | case "231": return "SpringJoint2D"; 221 | case "213": return "Sprite"; 222 | case "66": return "SpriteCollider2D"; 223 | case "212": return "SpriteRenderer"; 224 | case "1110": return "SpeedTreeImporter"; 225 | case "228": return "SpeedTreeWindAsset"; 226 | case "184": return "SubstanceArchive"; 227 | case "1112": return "SubstanceImporter"; 228 | case "252": return "SurfaceEffector2D"; 229 | case "78": return "TagManager"; 230 | case "218": return "Terrain"; 231 | case "154": return "TerrainCollider"; 232 | case "156": return "TerrainData"; 233 | case "210": return "TerrainInstance"; 234 | case "49": return "TextAsset"; 235 | case "102": return "TextMesh"; 236 | case "1031": return "TextScriptImporter"; 237 | case "27": return "Texture"; 238 | case "28": return "Texture2D"; 239 | case "117": return "Texture3D"; 240 | case "1006": return "TextureImporter"; 241 | case "5": return "TimeManager"; 242 | case "96": return "TrailRenderer"; 243 | case "4": return "Transform"; 244 | case "193": return "Tree"; 245 | case "1042": return "TrueTypeFontImporter"; 246 | case "158": return "WebCamTexture"; 247 | case "146": return "WheelCollider"; 248 | case "235": return "WheelJoint2D"; 249 | case "182": return "WindZone"; 250 | case "76": return "WorldParticleCollider"; 251 | 252 | } 253 | return "None"; 254 | } 255 | } -------------------------------------------------------------------------------- /yaml/Yaml/Assets/YAML.cs: -------------------------------------------------------------------------------- 1 | /* Created by NavyZhang 2 | * mail:710605420@qq.com 3 | * Welcome to exchange ideas 4 | */ 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using System; 8 | using System.IO; 9 | 10 | public class YAML: Common.SingletonBase 11 | { 12 | private string outPut = ""; 13 | public class Node 14 | { 15 | public string ClassId = ""; 16 | public string RootFileID = ""; //额外属性,只是为了方便归属 17 | public string Name = ""; 18 | public string Value = ""; 19 | public Node Parent = null; 20 | public List Children = null; 21 | public int depth = 0; 22 | 23 | private List Attribute = new List(); 24 | public void Parse() 25 | { 26 | 27 | } 28 | 29 | // public string GetFileIdByParentName(string name) 30 | // { 31 | // string res = ""; 32 | // if (Children == null) 33 | // return ""; 34 | // foreach(var node in Children) 35 | // { 36 | // res = _GetFileIdByParentName(node, name); 37 | // } 38 | // return res; 39 | // } 40 | // public string _GetFileIdByParentName(Node node,string name) 41 | // { 42 | // if (node == null) 43 | // return ""; 44 | // if (node.Value != null) 45 | // UnityEngine.Debug.Log(node.Value); 46 | // if (node.Value != null && name == node.Value.Trim()) 47 | // { 48 | // return node.RootFileID; 49 | // } 50 | // if (node.Children != null && node.Children.Count != 0) 51 | // { 52 | // foreach(var child in node.Children) 53 | // { 54 | // _GetFileIdByParentName(child, name); 55 | // } 56 | // } 57 | // return ""; 58 | // } 59 | 60 | public Node AddNode(string key, string val, int currentDepth,string RootFileID, string ClassId) 61 | { 62 | if (currentDepth - depth >= 1) 63 | { 64 | if (currentDepth == depth) 65 | { 66 | return Parent.AddNode(key, val, currentDepth, RootFileID, ClassId); 67 | } 68 | Node node = new Node(); 69 | node.Name = key; 70 | node.Value = val; 71 | node.depth = currentDepth; 72 | node.Parent = this; 73 | node.RootFileID = RootFileID; 74 | node.ClassId = ClassId; 75 | if (Children == null) 76 | { 77 | Children = new List(); 78 | } 79 | Children.Add(node); 80 | return node; 81 | } 82 | else 83 | { 84 | if (Parent == null) 85 | { 86 | Node node = new Node(); 87 | node.Name = key; 88 | node.Value = val; 89 | node.depth = currentDepth; 90 | node.Parent = this; 91 | node.RootFileID = RootFileID; 92 | node.ClassId = ClassId; 93 | if (Children == null) 94 | { 95 | Children = new List(); 96 | } 97 | Children.Add(node); 98 | return node; 99 | } 100 | return Parent.AddNode(key, val, currentDepth, RootFileID, ClassId); 101 | } 102 | } 103 | public Node Find(string name) 104 | { 105 | if (Name.Trim() == name.Trim()) 106 | { 107 | return this; 108 | } 109 | if (Children != null) 110 | { 111 | for (int i = 0; i < Children.Count; ++i) 112 | { 113 | Node node = Children[i].Find(name); 114 | if (null != node) 115 | return node; 116 | } 117 | } 118 | return null; 119 | } 120 | 121 | public void Find(string name, List nodes) 122 | { 123 | if (Name == name) 124 | { 125 | nodes.Add(this); 126 | } 127 | if (Children != null) 128 | { 129 | for (int i = 0; i < Children.Count; ++i) 130 | { 131 | Children[i].Find(name, nodes); 132 | } 133 | } 134 | } 135 | 136 | public List AttributeForGenerateCode() 137 | { 138 | Attribute.Clear(); 139 | if (Children != null) 140 | { 141 | foreach (var child in Children) 142 | { 143 | _AttributeForGenerateCode(child); 144 | } 145 | } 146 | return Attribute; 147 | } 148 | 149 | public void _AttributeForGenerateCode(Node node) //如果自动化代码生成,就需要改变对象名才能产生效果,而且也才能定位。 150 | { 151 | if(node != null) 152 | { 153 | if(node.Name == "m_Name" && node.Value != null && !string.IsNullOrEmpty(node.Value.Trim())) 154 | Attribute.Add(node); 155 | if(node.Children!= null) 156 | { 157 | foreach (var child in node.Children) 158 | { 159 | _AttributeForGenerateCode(child); 160 | } 161 | } 162 | } 163 | } 164 | } 165 | public static Node Load(string path) 166 | { 167 | if (false == File.Exists(path)) 168 | { 169 | return null; 170 | } 171 | FileStream file = new FileStream(path, FileMode.Open); 172 | if (file == null) 173 | return null; 174 | int len = (int)file.Length; 175 | if (len == 0) return null; 176 | byte[] buffer = ThreadBuffer.GetBuffer(); 177 | file.Read(buffer, 0, len); 178 | file.Close(); 179 | file.Dispose(); 180 | string content = System.Text.Encoding.UTF8.GetString(buffer, 0, len); 181 | return LoadFromString(content); 182 | } 183 | 184 | public static Node LoadFromString(string content) 185 | { 186 | string ClassId = ""; 187 | string fileId = ""; 188 | string[] lines = content.Replace("\r\n", "\n").Split('\n'); 189 | int[] depths = new int[lines.Length]; 190 | for (int i = 0; i < lines.Length; ++i) 191 | { 192 | string temp = lines[i]; 193 | byte spaceCount = 0; 194 | for (int j = 0; j < temp.Length; ++j) 195 | { 196 | if (temp[j] == ' ') 197 | { 198 | spaceCount++; 199 | } 200 | else break; 201 | } 202 | // depths[i] = spaceCount / 2 + 1; 203 | depths[i] = spaceCount; 204 | lines[i] = lines[i].Substring(spaceCount, lines[i].Length - spaceCount); 205 | } 206 | Node root = new Node(); 207 | for (int i = 0; i < lines.Length; ++i) 208 | { 209 | string temp = lines[i]; 210 | 211 | if (temp.Length == 0) 212 | continue; 213 | // string key = temp.Replace(": ", ":"); 214 | string key = temp; 215 | string val = null; 216 | int idx = key.IndexOf(':'); 217 | if (idx != -1) 218 | { 219 | val = key.Substring(idx + 1); 220 | key = key.Substring(0, idx); 221 | } 222 | // int depthModify = 0; 223 | // if (key.StartsWith("- ")) 224 | // { 225 | // key = key.Replace("- ", ""); 226 | // depthModify = 1; 227 | // if (key.StartsWith("{")) 228 | // { 229 | // key = ""; 230 | // val = temp.Replace("- ", ""); 231 | // } 232 | // } 233 | if (val != null) 234 | { 235 | if (val.StartsWith("'") && val.EndsWith("'")) 236 | { 237 | if (val.Length == 1) 238 | { 239 | if (i + 1 < lines.Length) 240 | { 241 | string nextLine = lines[i + 1]; 242 | if (nextLine.EndsWith("'")) 243 | { 244 | val += "\n" + nextLine.Substring(0, nextLine.Length - 1); 245 | lines[i + 1] = ""; 246 | } 247 | else 248 | { 249 | string nextLine1 = lines[i + 2]; 250 | if (nextLine1.EndsWith("'")) 251 | { 252 | if (nextLine1.Length == 1) 253 | { 254 | nextLine1 = ""; 255 | } 256 | else 257 | { 258 | nextLine1 = nextLine1.Substring(0, nextLine1.Length - 1); 259 | } 260 | val += "\n" + nextLine + "\n" + nextLine1; 261 | lines[i + 1] = ""; 262 | lines[i + 2] = ""; 263 | } 264 | else 265 | { 266 | val = ""; 267 | } 268 | } 269 | } 270 | else 271 | { 272 | val = ""; 273 | } 274 | } 275 | else if (val.Length <= 2) 276 | { 277 | val = ""; 278 | UnityEngine.Debug.LogError("YAML val.Length <= 2" + key + " line = " + i + " content=" + temp); 279 | } 280 | else 281 | { 282 | val = val.Substring(1, val.Length - 2); 283 | } 284 | } 285 | } 286 | if (temp.Contains("&")) 287 | { 288 | 289 | int pos = 7; 290 | while(temp[pos] != ' ') 291 | { 292 | ClassId += temp[pos++]; 293 | } 294 | string[] idInfo = temp.Split('&'); 295 | fileId = idInfo[1]; 296 | root = root.AddNode(key, val, depths[i],"", ""); 297 | } 298 | else 299 | { 300 | root = root.AddNode(key, val, depths[i], fileId, ClassId); 301 | //fileId = ""; 302 | ClassId = ""; 303 | } 304 | 305 | } 306 | while (true) 307 | { 308 | if (root.Parent != null) 309 | { 310 | root = root.Parent; 311 | } 312 | else 313 | break; 314 | } 315 | return root; 316 | } 317 | 318 | public static Dictionary DeserializeValue(string value) 319 | { 320 | Dictionary valueNode = new Dictionary(); 321 | 322 | if(value.Contains("{")) 323 | { 324 | string val = value.Replace("{", "").Replace("}", ""); 325 | string[] valInfo = val.Split(','); 326 | 327 | foreach (var va in valInfo) 328 | { 329 | string[] v = va.Split(':'); 330 | Node node = new Node(); 331 | node.Name = v[0]; 332 | node.Value = v[1]; 333 | valueNode.Add(v[0], node); 334 | } 335 | 336 | } 337 | 338 | return valueNode; 339 | } 340 | 341 | private static string GeneralString(int n, string par) 342 | { 343 | System.Text.StringBuilder a = new System.Text.StringBuilder(n * par.Length); 344 | for (int i = 0; i < n; ++i) 345 | { 346 | a.Append(par); 347 | } 348 | return a.ToString(); 349 | } 350 | 351 | public string Deserialize(YAML.Node node) 352 | { 353 | outPut = ""; 354 | _Deserialize(node); 355 | return outPut; 356 | } 357 | public void _Deserialize(YAML.Node node) 358 | { 359 | if (node == null) 360 | { 361 | UnityEngine.Debug.Log("No Data"); 362 | return; 363 | } 364 | if (node.Children != null) 365 | { 366 | for (int i = 0; i < node.Children.Count; ++i) 367 | { 368 | YAML.Node child = node.Children[i]; 369 | if (child.Value == null) 370 | { 371 | outPut += GeneralString(child.depth , " ") + child.Name + "\n"; 372 | } 373 | else 374 | { 375 | outPut += GeneralString(child.depth , " ") + child.Name + ":" + child.Value + "\n"; 376 | } 377 | if (child.Children != null) 378 | { 379 | _Deserialize(child); 380 | } 381 | 382 | } 383 | } 384 | } 385 | 386 | public void Write(string path,string content) 387 | { 388 | if (File.Exists(path)) 389 | File.Delete(path); 390 | System.Text.UTF8Encoding utf8 = new System.Text.UTF8Encoding(false); 391 | File.WriteAllText(path, content, utf8); 392 | } 393 | 394 | } -------------------------------------------------------------------------------- /yaml/Yaml/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: 11 7 | productGUID: 8b383132262b0da4f902d5a982c0863f 8 | AndroidProfiler: 0 9 | defaultScreenOrientation: 4 10 | targetDevice: 2 11 | useOnDemandResources: 0 12 | accelerometerFrequency: 60 13 | companyName: DefaultCompany 14 | productName: Yaml 15 | defaultCursor: {fileID: 0} 16 | cursorHotspot: {x: 0, y: 0} 17 | m_SplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21176471, a: 1} 18 | m_ShowUnitySplashScreen: 1 19 | m_ShowUnitySplashLogo: 1 20 | m_SplashScreenOverlayOpacity: 1 21 | m_SplashScreenAnimation: 1 22 | m_SplashScreenLogoStyle: 1 23 | m_SplashScreenDrawMode: 0 24 | m_SplashScreenBackgroundAnimationZoom: 1 25 | m_SplashScreenLogoAnimationZoom: 1 26 | m_SplashScreenBackgroundLandscapeAspect: 1 27 | m_SplashScreenBackgroundPortraitAspect: 1 28 | m_SplashScreenBackgroundLandscapeUvs: 29 | serializedVersion: 2 30 | x: 0 31 | y: 0 32 | width: 1 33 | height: 1 34 | m_SplashScreenBackgroundPortraitUvs: 35 | serializedVersion: 2 36 | x: 0 37 | y: 0 38 | width: 1 39 | height: 1 40 | m_SplashScreenLogos: [] 41 | m_SplashScreenBackgroundLandscape: {fileID: 0} 42 | m_SplashScreenBackgroundPortrait: {fileID: 0} 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_MobileMTRendering: 0 53 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 54 | iosShowActivityIndicatorOnLoading: -1 55 | androidShowActivityIndicatorOnLoading: -1 56 | tizenShowActivityIndicatorOnLoading: -1 57 | iosAppInBackgroundBehavior: 0 58 | displayResolutionDialog: 1 59 | iosAllowHTTPDownload: 1 60 | allowedAutorotateToPortrait: 1 61 | allowedAutorotateToPortraitUpsideDown: 1 62 | allowedAutorotateToLandscapeRight: 1 63 | allowedAutorotateToLandscapeLeft: 1 64 | useOSAutorotation: 1 65 | use32BitDisplayBuffer: 1 66 | disableDepthAndStencilBuffers: 0 67 | defaultIsFullScreen: 1 68 | defaultIsNativeResolution: 1 69 | runInBackground: 0 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | submitAnalytics: 1 74 | usePlayerLog: 1 75 | bakeCollisionMeshes: 0 76 | forceSingleInstance: 0 77 | resizableWindow: 0 78 | useMacAppStoreValidation: 0 79 | macAppStoreCategory: public.app-category.games 80 | gpuSkinning: 0 81 | graphicsJobs: 0 82 | xboxPIXTextureCapture: 0 83 | xboxEnableAvatar: 0 84 | xboxEnableKinect: 0 85 | xboxEnableKinectAutoTracking: 0 86 | xboxEnableFitness: 0 87 | visibleInBackground: 0 88 | allowFullscreenSwitch: 1 89 | graphicsJobMode: 0 90 | macFullscreenMode: 2 91 | d3d9FullscreenMode: 1 92 | d3d11FullscreenMode: 1 93 | xboxSpeechDB: 0 94 | xboxEnableHeadOrientation: 0 95 | xboxEnableGuest: 0 96 | xboxEnablePIXSampling: 0 97 | n3dsDisableStereoscopicView: 0 98 | n3dsEnableSharedListOpt: 1 99 | n3dsEnableVSync: 0 100 | ignoreAlphaClear: 0 101 | xboxOneResolution: 0 102 | xboxOneMonoLoggingLevel: 0 103 | xboxOneLoggingLevel: 1 104 | videoMemoryForVertexBuffers: 0 105 | psp2PowerMode: 0 106 | psp2AcquireBGM: 1 107 | wiiUTVResolution: 0 108 | wiiUGamePadMSAA: 1 109 | wiiUSupportsNunchuk: 0 110 | wiiUSupportsClassicController: 0 111 | wiiUSupportsBalanceBoard: 0 112 | wiiUSupportsMotionPlus: 0 113 | wiiUSupportsProController: 0 114 | wiiUAllowScreenCapture: 1 115 | wiiUControllerCount: 0 116 | m_SupportedAspectRatios: 117 | 4:3: 1 118 | 5:4: 1 119 | 16:10: 1 120 | 16:9: 1 121 | Others: 1 122 | bundleVersion: 1.0 123 | preloadedAssets: [] 124 | metroInputSource: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 0 127 | xboxOneEnable7thCore: 0 128 | vrSettings: 129 | cardboard: 130 | depthFormat: 0 131 | enableTransitionView: 0 132 | daydream: 133 | depthFormat: 0 134 | useSustainedPerformanceMode: 0 135 | hololens: 136 | depthFormat: 1 137 | protectGraphicsMemory: 0 138 | useHDRDisplay: 0 139 | applicationIdentifier: {} 140 | buildNumber: {} 141 | AndroidBundleVersionCode: 1 142 | AndroidMinSdkVersion: 16 143 | AndroidTargetSdkVersion: 0 144 | AndroidPreferredInstallLocation: 1 145 | aotOptions: 146 | stripEngineCode: 1 147 | iPhoneStrippingLevel: 0 148 | iPhoneScriptCallOptimization: 0 149 | ForceInternetPermission: 0 150 | ForceSDCardPermission: 0 151 | CreateWallpaper: 0 152 | APKExpansionFiles: 0 153 | keepLoadedShadersAlive: 0 154 | StripUnusedMeshComponents: 0 155 | VertexChannelCompressionMask: 156 | serializedVersion: 2 157 | m_Bits: 238 158 | iPhoneSdkVersion: 988 159 | iOSTargetOSVersionString: 160 | tvOSSdkVersion: 0 161 | tvOSRequireExtendedGameController: 0 162 | tvOSTargetOSVersionString: 163 | uIPrerenderedIcon: 0 164 | uIRequiresPersistentWiFi: 0 165 | uIRequiresFullScreen: 1 166 | uIStatusBarHidden: 1 167 | uIExitOnSuspend: 0 168 | uIStatusBarStyle: 0 169 | iPhoneSplashScreen: {fileID: 0} 170 | iPhoneHighResSplashScreen: {fileID: 0} 171 | iPhoneTallHighResSplashScreen: {fileID: 0} 172 | iPhone47inSplashScreen: {fileID: 0} 173 | iPhone55inPortraitSplashScreen: {fileID: 0} 174 | iPhone55inLandscapeSplashScreen: {fileID: 0} 175 | iPadPortraitSplashScreen: {fileID: 0} 176 | iPadHighResPortraitSplashScreen: {fileID: 0} 177 | iPadLandscapeSplashScreen: {fileID: 0} 178 | iPadHighResLandscapeSplashScreen: {fileID: 0} 179 | appleTVSplashScreen: {fileID: 0} 180 | tvOSSmallIconLayers: [] 181 | tvOSLargeIconLayers: [] 182 | tvOSTopShelfImageLayers: [] 183 | tvOSTopShelfImageWideLayers: [] 184 | iOSLaunchScreenType: 0 185 | iOSLaunchScreenPortrait: {fileID: 0} 186 | iOSLaunchScreenLandscape: {fileID: 0} 187 | iOSLaunchScreenBackgroundColor: 188 | serializedVersion: 2 189 | rgba: 0 190 | iOSLaunchScreenFillPct: 100 191 | iOSLaunchScreenSize: 100 192 | iOSLaunchScreenCustomXibPath: 193 | iOSLaunchScreeniPadType: 0 194 | iOSLaunchScreeniPadImage: {fileID: 0} 195 | iOSLaunchScreeniPadBackgroundColor: 196 | serializedVersion: 2 197 | rgba: 0 198 | iOSLaunchScreeniPadFillPct: 100 199 | iOSLaunchScreeniPadSize: 100 200 | iOSLaunchScreeniPadCustomXibPath: 201 | iOSDeviceRequirements: [] 202 | iOSURLSchemes: [] 203 | iOSBackgroundModes: 0 204 | iOSMetalForceHardShadows: 0 205 | metalEditorSupport: 1 206 | metalAPIValidation: 1 207 | iOSRenderExtraFrameOnPause: 0 208 | appleDeveloperTeamID: 209 | iOSManualSigningProvisioningProfileID: 210 | tvOSManualSigningProvisioningProfileID: 211 | appleEnableAutomaticSigning: 0 212 | AndroidTargetDevice: 0 213 | AndroidSplashScreenScale: 0 214 | androidSplashScreen: {fileID: 0} 215 | AndroidKeystoreName: 216 | AndroidKeyaliasName: 217 | AndroidTVCompatibility: 1 218 | AndroidIsGame: 1 219 | androidEnableBanner: 1 220 | m_AndroidBanners: 221 | - width: 320 222 | height: 180 223 | banner: {fileID: 0} 224 | androidGamepadSupportLevel: 0 225 | resolutionDialogBanner: {fileID: 0} 226 | m_BuildTargetIcons: [] 227 | m_BuildTargetBatching: [] 228 | m_BuildTargetGraphicsAPIs: [] 229 | m_BuildTargetVRSettings: [] 230 | openGLRequireES31: 0 231 | openGLRequireES31AEP: 0 232 | webPlayerTemplate: APPLICATION:Default 233 | m_TemplateCustomTags: {} 234 | wiiUTitleID: 0005000011000000 235 | wiiUGroupID: 00010000 236 | wiiUCommonSaveSize: 4096 237 | wiiUAccountSaveSize: 2048 238 | wiiUOlvAccessKey: 0 239 | wiiUTinCode: 0 240 | wiiUJoinGameId: 0 241 | wiiUJoinGameModeMask: 0000000000000000 242 | wiiUCommonBossSize: 0 243 | wiiUAccountBossSize: 0 244 | wiiUAddOnUniqueIDs: [] 245 | wiiUMainThreadStackSize: 3072 246 | wiiULoaderThreadStackSize: 1024 247 | wiiUSystemHeapSize: 128 248 | wiiUTVStartupScreen: {fileID: 0} 249 | wiiUGamePadStartupScreen: {fileID: 0} 250 | wiiUDrcBufferDisabled: 0 251 | wiiUProfilerLibPath: 252 | playModeTestRunnerEnabled: 0 253 | actionOnDotNetUnhandledException: 1 254 | enableInternalProfiler: 0 255 | logObjCUncaughtExceptions: 1 256 | enableCrashReportAPI: 0 257 | cameraUsageDescription: 258 | locationUsageDescription: 259 | microphoneUsageDescription: 260 | switchNetLibKey: 261 | switchSocketMemoryPoolSize: 6144 262 | switchSocketAllocatorPoolSize: 128 263 | switchSocketConcurrencyLimit: 14 264 | switchScreenResolutionBehavior: 2 265 | switchUseCPUProfiler: 0 266 | switchApplicationID: 0x01004b9000490000 267 | switchNSODependencies: 268 | switchTitleNames_0: 269 | switchTitleNames_1: 270 | switchTitleNames_2: 271 | switchTitleNames_3: 272 | switchTitleNames_4: 273 | switchTitleNames_5: 274 | switchTitleNames_6: 275 | switchTitleNames_7: 276 | switchTitleNames_8: 277 | switchTitleNames_9: 278 | switchTitleNames_10: 279 | switchTitleNames_11: 280 | switchPublisherNames_0: 281 | switchPublisherNames_1: 282 | switchPublisherNames_2: 283 | switchPublisherNames_3: 284 | switchPublisherNames_4: 285 | switchPublisherNames_5: 286 | switchPublisherNames_6: 287 | switchPublisherNames_7: 288 | switchPublisherNames_8: 289 | switchPublisherNames_9: 290 | switchPublisherNames_10: 291 | switchPublisherNames_11: 292 | switchIcons_0: {fileID: 0} 293 | switchIcons_1: {fileID: 0} 294 | switchIcons_2: {fileID: 0} 295 | switchIcons_3: {fileID: 0} 296 | switchIcons_4: {fileID: 0} 297 | switchIcons_5: {fileID: 0} 298 | switchIcons_6: {fileID: 0} 299 | switchIcons_7: {fileID: 0} 300 | switchIcons_8: {fileID: 0} 301 | switchIcons_9: {fileID: 0} 302 | switchIcons_10: {fileID: 0} 303 | switchIcons_11: {fileID: 0} 304 | switchSmallIcons_0: {fileID: 0} 305 | switchSmallIcons_1: {fileID: 0} 306 | switchSmallIcons_2: {fileID: 0} 307 | switchSmallIcons_3: {fileID: 0} 308 | switchSmallIcons_4: {fileID: 0} 309 | switchSmallIcons_5: {fileID: 0} 310 | switchSmallIcons_6: {fileID: 0} 311 | switchSmallIcons_7: {fileID: 0} 312 | switchSmallIcons_8: {fileID: 0} 313 | switchSmallIcons_9: {fileID: 0} 314 | switchSmallIcons_10: {fileID: 0} 315 | switchSmallIcons_11: {fileID: 0} 316 | switchManualHTML: 317 | switchAccessibleURLs: 318 | switchLegalInformation: 319 | switchMainThreadStackSize: 1048576 320 | switchPresenceGroupId: 321 | switchLogoHandling: 0 322 | switchReleaseVersion: 0 323 | switchDisplayVersion: 1.0.0 324 | switchStartupUserAccount: 0 325 | switchTouchScreenUsage: 0 326 | switchSupportedLanguagesMask: 0 327 | switchLogoType: 0 328 | switchApplicationErrorCodeCategory: 329 | switchUserAccountSaveDataSize: 0 330 | switchUserAccountSaveDataJournalSize: 0 331 | switchApplicationAttribute: 0 332 | switchCardSpecSize: -1 333 | switchCardSpecClock: -1 334 | switchRatingsMask: 0 335 | switchRatingsInt_0: 0 336 | switchRatingsInt_1: 0 337 | switchRatingsInt_2: 0 338 | switchRatingsInt_3: 0 339 | switchRatingsInt_4: 0 340 | switchRatingsInt_5: 0 341 | switchRatingsInt_6: 0 342 | switchRatingsInt_7: 0 343 | switchRatingsInt_8: 0 344 | switchRatingsInt_9: 0 345 | switchRatingsInt_10: 0 346 | switchRatingsInt_11: 0 347 | switchLocalCommunicationIds_0: 348 | switchLocalCommunicationIds_1: 349 | switchLocalCommunicationIds_2: 350 | switchLocalCommunicationIds_3: 351 | switchLocalCommunicationIds_4: 352 | switchLocalCommunicationIds_5: 353 | switchLocalCommunicationIds_6: 354 | switchLocalCommunicationIds_7: 355 | switchParentalControl: 0 356 | switchAllowsScreenshot: 1 357 | switchDataLossConfirmation: 0 358 | switchSupportedNpadStyles: 3 359 | switchSocketConfigEnabled: 0 360 | switchTcpInitialSendBufferSize: 32 361 | switchTcpInitialReceiveBufferSize: 64 362 | switchTcpAutoSendBufferSizeMax: 256 363 | switchTcpAutoReceiveBufferSizeMax: 256 364 | switchUdpSendBufferSize: 9 365 | switchUdpReceiveBufferSize: 42 366 | switchSocketBufferEfficiency: 4 367 | switchSocketInitializeEnabled: 1 368 | switchNetworkInterfaceManagerInitializeEnabled: 1 369 | switchPlayerConnectionEnabled: 1 370 | ps4NPAgeRating: 12 371 | ps4NPTitleSecret: 372 | ps4NPTrophyPackPath: 373 | ps4ParentalLevel: 11 374 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 375 | ps4Category: 0 376 | ps4MasterVersion: 01.00 377 | ps4AppVersion: 01.00 378 | ps4AppType: 0 379 | ps4ParamSfxPath: 380 | ps4VideoOutPixelFormat: 0 381 | ps4VideoOutInitialWidth: 1920 382 | ps4VideoOutBaseModeInitialWidth: 1920 383 | ps4VideoOutReprojectionRate: 120 384 | ps4PronunciationXMLPath: 385 | ps4PronunciationSIGPath: 386 | ps4BackgroundImagePath: 387 | ps4StartupImagePath: 388 | ps4SaveDataImagePath: 389 | ps4SdkOverride: 390 | ps4BGMPath: 391 | ps4ShareFilePath: 392 | ps4ShareOverlayImagePath: 393 | ps4PrivacyGuardImagePath: 394 | ps4NPtitleDatPath: 395 | ps4RemotePlayKeyAssignment: -1 396 | ps4RemotePlayKeyMappingDir: 397 | ps4PlayTogetherPlayerCount: 0 398 | ps4EnterButtonAssignment: 1 399 | ps4ApplicationParam1: 0 400 | ps4ApplicationParam2: 0 401 | ps4ApplicationParam3: 0 402 | ps4ApplicationParam4: 0 403 | ps4DownloadDataSize: 0 404 | ps4GarlicHeapSize: 2048 405 | ps4ProGarlicHeapSize: 2560 406 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 407 | ps4UseDebugIl2cppLibs: 0 408 | ps4pnSessions: 1 409 | ps4pnPresence: 1 410 | ps4pnFriends: 1 411 | ps4pnGameCustomData: 1 412 | playerPrefsSupport: 0 413 | restrictedAudioUsageRights: 0 414 | ps4UseResolutionFallback: 0 415 | ps4ReprojectionSupport: 0 416 | ps4UseAudio3dBackend: 0 417 | ps4SocialScreenEnabled: 0 418 | ps4ScriptOptimizationLevel: 3 419 | ps4Audio3dVirtualSpeakerCount: 14 420 | ps4attribCpuUsage: 0 421 | ps4PatchPkgPath: 422 | ps4PatchLatestPkgPath: 423 | ps4PatchChangeinfoPath: 424 | ps4PatchDayOne: 0 425 | ps4attribUserManagement: 0 426 | ps4attribMoveSupport: 0 427 | ps4attrib3DSupport: 0 428 | ps4attribShareSupport: 0 429 | ps4attribExclusiveVR: 0 430 | ps4disableAutoHideSplash: 0 431 | ps4videoRecordingFeaturesUsed: 0 432 | ps4contentSearchFeaturesUsed: 0 433 | ps4attribEyeToEyeDistanceSettingVR: 0 434 | ps4IncludedModules: [] 435 | monoEnv: 436 | psp2Splashimage: {fileID: 0} 437 | psp2NPTrophyPackPath: 438 | psp2NPSupportGBMorGJP: 0 439 | psp2NPAgeRating: 12 440 | psp2NPTitleDatPath: 441 | psp2NPCommsID: 442 | psp2NPCommunicationsID: 443 | psp2NPCommsPassphrase: 444 | psp2NPCommsSig: 445 | psp2ParamSfxPath: 446 | psp2ManualPath: 447 | psp2LiveAreaGatePath: 448 | psp2LiveAreaBackroundPath: 449 | psp2LiveAreaPath: 450 | psp2LiveAreaTrialPath: 451 | psp2PatchChangeInfoPath: 452 | psp2PatchOriginalPackage: 453 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 454 | psp2KeystoneFile: 455 | psp2MemoryExpansionMode: 0 456 | psp2DRMType: 0 457 | psp2StorageType: 0 458 | psp2MediaCapacity: 0 459 | psp2DLCConfigPath: 460 | psp2ThumbnailPath: 461 | psp2BackgroundPath: 462 | psp2SoundPath: 463 | psp2TrophyCommId: 464 | psp2TrophyPackagePath: 465 | psp2PackagedResourcesPath: 466 | psp2SaveDataQuota: 10240 467 | psp2ParentalLevel: 1 468 | psp2ShortTitle: Not Set 469 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 470 | psp2Category: 0 471 | psp2MasterVersion: 01.00 472 | psp2AppVersion: 01.00 473 | psp2TVBootMode: 0 474 | psp2EnterButtonAssignment: 2 475 | psp2TVDisableEmu: 0 476 | psp2AllowTwitterDialog: 1 477 | psp2Upgradable: 0 478 | psp2HealthWarning: 0 479 | psp2UseLibLocation: 0 480 | psp2InfoBarOnStartup: 0 481 | psp2InfoBarColor: 0 482 | psp2UseDebugIl2cppLibs: 0 483 | psmSplashimage: {fileID: 0} 484 | splashScreenBackgroundSourceLandscape: {fileID: 0} 485 | splashScreenBackgroundSourcePortrait: {fileID: 0} 486 | spritePackerPolicy: 487 | webGLMemorySize: 256 488 | webGLExceptionSupport: 1 489 | webGLNameFilesAsHashes: 0 490 | webGLDataCaching: 0 491 | webGLDebugSymbols: 0 492 | webGLEmscriptenArgs: 493 | webGLModulesDirectory: 494 | webGLTemplate: APPLICATION:Default 495 | webGLAnalyzeBuildSize: 0 496 | webGLUseEmbeddedResources: 0 497 | webGLUseWasm: 0 498 | webGLCompressionFormat: 1 499 | scriptingDefineSymbols: {} 500 | platformArchitecture: {} 501 | scriptingBackend: {} 502 | incrementalIl2cppBuild: {} 503 | additionalIl2CppArgs: 504 | apiCompatibilityLevelPerPlatform: {} 505 | m_RenderingPath: 1 506 | m_MobileRenderingPath: 1 507 | metroPackageName: Yaml 508 | metroPackageVersion: 509 | metroCertificatePath: 510 | metroCertificatePassword: 511 | metroCertificateSubject: 512 | metroCertificateIssuer: 513 | metroCertificateNotAfter: 0000000000000000 514 | metroApplicationDescription: Yaml 515 | wsaImages: {} 516 | metroTileShortName: 517 | metroCommandLineArgsFile: 518 | metroTileShowName: 0 519 | metroMediumTileShowName: 0 520 | metroLargeTileShowName: 0 521 | metroWideTileShowName: 0 522 | metroDefaultTileSize: 1 523 | metroTileForegroundText: 2 524 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 525 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 526 | a: 1} 527 | metroSplashScreenUseBackgroundColor: 0 528 | platformCapabilities: {} 529 | metroFTAName: 530 | metroFTAFileTypes: [] 531 | metroProtocolName: 532 | metroCompilationOverrides: 1 533 | tizenProductDescription: 534 | tizenProductURL: 535 | tizenSigningProfileName: 536 | tizenGPSPermissions: 0 537 | tizenMicrophonePermissions: 0 538 | tizenDeploymentTarget: 539 | tizenDeploymentTargetType: -1 540 | tizenMinOSVersion: 1 541 | n3dsUseExtSaveData: 0 542 | n3dsCompressStaticMem: 1 543 | n3dsExtSaveDataNumber: 0x12345 544 | n3dsStackSize: 131072 545 | n3dsTargetPlatform: 2 546 | n3dsRegion: 7 547 | n3dsMediaSize: 0 548 | n3dsLogoStyle: 3 549 | n3dsTitle: GameName 550 | n3dsProductCode: 551 | n3dsApplicationId: 0xFF3FF 552 | stvDeviceAddress: 553 | stvProductDescription: 554 | stvProductAuthor: 555 | stvProductAuthorEmail: 556 | stvProductLink: 557 | stvProductCategory: 0 558 | XboxOneProductId: 559 | XboxOneUpdateKey: 560 | XboxOneSandboxId: 561 | XboxOneContentId: 562 | XboxOneTitleId: 563 | XboxOneSCId: 564 | XboxOneGameOsOverridePath: 565 | XboxOnePackagingOverridePath: 566 | XboxOneAppManifestOverridePath: 567 | XboxOnePackageEncryption: 0 568 | XboxOnePackageUpdateGranularity: 2 569 | XboxOneDescription: 570 | XboxOneLanguage: 571 | - enus 572 | XboxOneCapability: [] 573 | XboxOneGameRating: {} 574 | XboxOneIsContentPackage: 0 575 | XboxOneEnableGPUVariability: 0 576 | XboxOneSockets: {} 577 | XboxOneSplashScreen: {fileID: 0} 578 | XboxOneAllowedProductIds: [] 579 | XboxOnePersistentLocalStorageSize: 0 580 | xboxOneScriptCompiler: 0 581 | vrEditorSettings: 582 | daydream: 583 | daydreamIconForeground: {fileID: 0} 584 | daydreamIconBackground: {fileID: 0} 585 | cloudServicesEnabled: {} 586 | facebookSdkVersion: 7.9.1 587 | apiCompatibilityLevel: 2 588 | cloudProjectId: 589 | projectName: 590 | organizationId: 591 | cloudEnabled: 0 592 | enableNewInputSystem: 0 593 | -------------------------------------------------------------------------------- /yaml/Yaml/Assets/test.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: 8 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: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 9 46 | m_GIWorkflowMode: 1 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 8 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 3 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFiltering: 0 81 | m_PVRFilteringMode: 1 82 | m_PVRCulling: 1 83 | m_PVRFilteringGaussRadiusDirect: 1 84 | m_PVRFilteringGaussRadiusIndirect: 5 85 | m_PVRFilteringGaussRadiusAO: 2 86 | m_PVRFilteringAtrousColorSigma: 1 87 | m_PVRFilteringAtrousNormalSigma: 1 88 | m_PVRFilteringAtrousPositionSigma: 1 89 | m_LightingDataAsset: {fileID: 0} 90 | m_ShadowMaskMode: 2 91 | --- !u!196 &4 92 | NavMeshSettings: 93 | serializedVersion: 2 94 | m_ObjectHideFlags: 0 95 | m_BuildSettings: 96 | serializedVersion: 2 97 | agentTypeID: 0 98 | agentRadius: 0.5 99 | agentHeight: 2 100 | agentSlope: 45 101 | agentClimb: 0.4 102 | ledgeDropHeight: 0 103 | maxJumpAcrossDistance: 0 104 | minRegionArea: 2 105 | manualCellSize: 0 106 | cellSize: 0.16666667 107 | manualTileSize: 0 108 | tileSize: 256 109 | accuratePlacement: 0 110 | m_NavMeshData: {fileID: 0} 111 | --- !u!1 &152698636 112 | GameObject: 113 | m_ObjectHideFlags: 0 114 | m_PrefabParentObject: {fileID: 0} 115 | m_PrefabInternal: {fileID: 0} 116 | serializedVersion: 5 117 | m_Component: 118 | - component: {fileID: 152698638} 119 | - component: {fileID: 152698637} 120 | m_Layer: 0 121 | m_Name: Directional Light 122 | m_TagString: Untagged 123 | m_Icon: {fileID: 0} 124 | m_NavMeshLayer: 0 125 | m_StaticEditorFlags: 0 126 | m_IsActive: 1 127 | --- !u!108 &152698637 128 | Light: 129 | m_ObjectHideFlags: 0 130 | m_PrefabParentObject: {fileID: 0} 131 | m_PrefabInternal: {fileID: 0} 132 | m_GameObject: {fileID: 152698636} 133 | m_Enabled: 1 134 | serializedVersion: 8 135 | m_Type: 1 136 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 137 | m_Intensity: 1 138 | m_Range: 10 139 | m_SpotAngle: 30 140 | m_CookieSize: 10 141 | m_Shadows: 142 | m_Type: 2 143 | m_Resolution: -1 144 | m_CustomResolution: -1 145 | m_Strength: 1 146 | m_Bias: 0.05 147 | m_NormalBias: 0.4 148 | m_NearPlane: 0.2 149 | m_Cookie: {fileID: 0} 150 | m_DrawHalo: 0 151 | m_Flare: {fileID: 0} 152 | m_RenderMode: 0 153 | m_CullingMask: 154 | serializedVersion: 2 155 | m_Bits: 4294967295 156 | m_Lightmapping: 4 157 | m_AreaSize: {x: 1, y: 1} 158 | m_BounceIntensity: 1 159 | m_ColorTemperature: 6570 160 | m_UseColorTemperature: 0 161 | m_ShadowRadius: 0 162 | m_ShadowAngle: 0 163 | --- !u!4 &152698638 164 | Transform: 165 | m_ObjectHideFlags: 0 166 | m_PrefabParentObject: {fileID: 0} 167 | m_PrefabInternal: {fileID: 0} 168 | m_GameObject: {fileID: 152698636} 169 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 170 | m_LocalPosition: {x: 0, y: 3, z: 0} 171 | m_LocalScale: {x: 1, y: 1, z: 1} 172 | m_Children: [] 173 | m_Father: {fileID: 0} 174 | m_RootOrder: 1 175 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 176 | --- !u!1 &319516721 177 | GameObject: 178 | m_ObjectHideFlags: 0 179 | m_PrefabParentObject: {fileID: 0} 180 | m_PrefabInternal: {fileID: 0} 181 | serializedVersion: 5 182 | m_Component: 183 | - component: {fileID: 319516722} 184 | - component: {fileID: 319516725} 185 | - component: {fileID: 319516724} 186 | - component: {fileID: 319516723} 187 | m_Layer: 5 188 | m_Name: TestButton 189 | m_TagString: Untagged 190 | m_Icon: {fileID: 0} 191 | m_NavMeshLayer: 0 192 | m_StaticEditorFlags: 0 193 | m_IsActive: 1 194 | --- !u!224 &319516722 195 | RectTransform: 196 | m_ObjectHideFlags: 0 197 | m_PrefabParentObject: {fileID: 0} 198 | m_PrefabInternal: {fileID: 0} 199 | m_GameObject: {fileID: 319516721} 200 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 201 | m_LocalPosition: {x: 0, y: 0, z: 0} 202 | m_LocalScale: {x: 1, y: 1, z: 1} 203 | m_Children: 204 | - {fileID: 2121124671} 205 | m_Father: {fileID: 1183356447} 206 | m_RootOrder: 0 207 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 208 | m_AnchorMin: {x: 0.5, y: 0.5} 209 | m_AnchorMax: {x: 0.5, y: 0.5} 210 | m_AnchoredPosition: {x: 0, y: 0} 211 | m_SizeDelta: {x: 160, y: 30} 212 | m_Pivot: {x: 0.5, y: 0.5} 213 | --- !u!114 &319516723 214 | MonoBehaviour: 215 | m_ObjectHideFlags: 0 216 | m_PrefabParentObject: {fileID: 0} 217 | m_PrefabInternal: {fileID: 0} 218 | m_GameObject: {fileID: 319516721} 219 | m_Enabled: 1 220 | m_EditorHideFlags: 0 221 | m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 222 | m_Name: 223 | m_EditorClassIdentifier: 224 | m_Navigation: 225 | m_Mode: 3 226 | m_SelectOnUp: {fileID: 0} 227 | m_SelectOnDown: {fileID: 0} 228 | m_SelectOnLeft: {fileID: 0} 229 | m_SelectOnRight: {fileID: 0} 230 | m_Transition: 1 231 | m_Colors: 232 | m_NormalColor: {r: 1, g: 1, b: 1, a: 1} 233 | m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} 234 | m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} 235 | m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} 236 | m_ColorMultiplier: 1 237 | m_FadeDuration: 0.1 238 | m_SpriteState: 239 | m_HighlightedSprite: {fileID: 0} 240 | m_PressedSprite: {fileID: 0} 241 | m_DisabledSprite: {fileID: 0} 242 | m_AnimationTriggers: 243 | m_NormalTrigger: Normal 244 | m_HighlightedTrigger: Highlighted 245 | m_PressedTrigger: Pressed 246 | m_DisabledTrigger: Disabled 247 | m_Interactable: 1 248 | m_TargetGraphic: {fileID: 319516724} 249 | m_OnClick: 250 | m_PersistentCalls: 251 | m_Calls: [] 252 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 253 | Culture=neutral, PublicKeyToken=null 254 | --- !u!114 &319516724 255 | MonoBehaviour: 256 | m_ObjectHideFlags: 0 257 | m_PrefabParentObject: {fileID: 0} 258 | m_PrefabInternal: {fileID: 0} 259 | m_GameObject: {fileID: 319516721} 260 | m_Enabled: 1 261 | m_EditorHideFlags: 0 262 | m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 263 | m_Name: 264 | m_EditorClassIdentifier: 265 | m_Material: {fileID: 0} 266 | m_Color: {r: 1, g: 1, b: 1, a: 1} 267 | m_RaycastTarget: 1 268 | m_OnCullStateChanged: 269 | m_PersistentCalls: 270 | m_Calls: [] 271 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 272 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 273 | m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} 274 | m_Type: 1 275 | m_PreserveAspect: 0 276 | m_FillCenter: 1 277 | m_FillMethod: 4 278 | m_FillAmount: 1 279 | m_FillClockwise: 1 280 | m_FillOrigin: 0 281 | --- !u!222 &319516725 282 | CanvasRenderer: 283 | m_ObjectHideFlags: 0 284 | m_PrefabParentObject: {fileID: 0} 285 | m_PrefabInternal: {fileID: 0} 286 | m_GameObject: {fileID: 319516721} 287 | --- !u!1 &360487649 288 | GameObject: 289 | m_ObjectHideFlags: 0 290 | m_PrefabParentObject: {fileID: 0} 291 | m_PrefabInternal: {fileID: 0} 292 | serializedVersion: 5 293 | m_Component: 294 | - component: {fileID: 360487654} 295 | - component: {fileID: 360487653} 296 | - component: {fileID: 360487652} 297 | - component: {fileID: 360487651} 298 | - component: {fileID: 360487650} 299 | - component: {fileID: 360487655} 300 | m_Layer: 0 301 | m_Name: Main Camera 302 | m_TagString: MainCamera 303 | m_Icon: {fileID: 0} 304 | m_NavMeshLayer: 0 305 | m_StaticEditorFlags: 0 306 | m_IsActive: 1 307 | --- !u!81 &360487650 308 | AudioListener: 309 | m_ObjectHideFlags: 0 310 | m_PrefabParentObject: {fileID: 0} 311 | m_PrefabInternal: {fileID: 0} 312 | m_GameObject: {fileID: 360487649} 313 | m_Enabled: 1 314 | --- !u!124 &360487651 315 | Behaviour: 316 | m_ObjectHideFlags: 0 317 | m_PrefabParentObject: {fileID: 0} 318 | m_PrefabInternal: {fileID: 0} 319 | m_GameObject: {fileID: 360487649} 320 | m_Enabled: 1 321 | --- !u!92 &360487652 322 | Behaviour: 323 | m_ObjectHideFlags: 0 324 | m_PrefabParentObject: {fileID: 0} 325 | m_PrefabInternal: {fileID: 0} 326 | m_GameObject: {fileID: 360487649} 327 | m_Enabled: 1 328 | --- !u!20 &360487653 329 | Camera: 330 | m_ObjectHideFlags: 0 331 | m_PrefabParentObject: {fileID: 0} 332 | m_PrefabInternal: {fileID: 0} 333 | m_GameObject: {fileID: 360487649} 334 | m_Enabled: 1 335 | serializedVersion: 2 336 | m_ClearFlags: 1 337 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 338 | m_NormalizedViewPortRect: 339 | serializedVersion: 2 340 | x: 0 341 | y: 0 342 | width: 1 343 | height: 1 344 | near clip plane: 0.3 345 | far clip plane: 1000 346 | field of view: 60 347 | orthographic: 0 348 | orthographic size: 5 349 | m_Depth: -1 350 | m_CullingMask: 351 | serializedVersion: 2 352 | m_Bits: 4294967295 353 | m_RenderingPath: -1 354 | m_TargetTexture: {fileID: 0} 355 | m_TargetDisplay: 0 356 | m_TargetEye: 3 357 | m_HDR: 1 358 | m_AllowMSAA: 1 359 | m_ForceIntoRT: 0 360 | m_OcclusionCulling: 1 361 | m_StereoConvergence: 10 362 | m_StereoSeparation: 0.022 363 | m_StereoMirrorMode: 0 364 | --- !u!4 &360487654 365 | Transform: 366 | m_ObjectHideFlags: 0 367 | m_PrefabParentObject: {fileID: 0} 368 | m_PrefabInternal: {fileID: 0} 369 | m_GameObject: {fileID: 360487649} 370 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 371 | m_LocalPosition: {x: 0, y: 1, z: -10} 372 | m_LocalScale: {x: 1, y: 1, z: 1} 373 | m_Children: [] 374 | m_Father: {fileID: 0} 375 | m_RootOrder: 0 376 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 377 | --- !u!114 &360487655 378 | MonoBehaviour: 379 | m_ObjectHideFlags: 0 380 | m_PrefabParentObject: {fileID: 0} 381 | m_PrefabInternal: {fileID: 0} 382 | m_GameObject: {fileID: 360487649} 383 | m_Enabled: 1 384 | m_EditorHideFlags: 0 385 | m_Script: {fileID: 11500000, guid: 1c5fb6a982960fd4285cfe1773af15d7, type: 3} 386 | m_Name: 387 | m_EditorClassIdentifier: 388 | TestButton: {fileID: 0} 389 | hhhhText: {fileID: 0} 390 | --- !u!1 &1183356443 391 | GameObject: 392 | m_ObjectHideFlags: 0 393 | m_PrefabParentObject: {fileID: 0} 394 | m_PrefabInternal: {fileID: 0} 395 | serializedVersion: 5 396 | m_Component: 397 | - component: {fileID: 1183356447} 398 | - component: {fileID: 1183356446} 399 | - component: {fileID: 1183356445} 400 | - component: {fileID: 1183356444} 401 | m_Layer: 5 402 | m_Name: Canvas 403 | m_TagString: Untagged 404 | m_Icon: {fileID: 0} 405 | m_NavMeshLayer: 0 406 | m_StaticEditorFlags: 0 407 | m_IsActive: 1 408 | --- !u!114 &1183356444 409 | MonoBehaviour: 410 | m_ObjectHideFlags: 0 411 | m_PrefabParentObject: {fileID: 0} 412 | m_PrefabInternal: {fileID: 0} 413 | m_GameObject: {fileID: 1183356443} 414 | m_Enabled: 1 415 | m_EditorHideFlags: 0 416 | m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 417 | m_Name: 418 | m_EditorClassIdentifier: 419 | m_IgnoreReversedGraphics: 1 420 | m_BlockingObjects: 0 421 | m_BlockingMask: 422 | serializedVersion: 2 423 | m_Bits: 4294967295 424 | --- !u!114 &1183356445 425 | MonoBehaviour: 426 | m_ObjectHideFlags: 0 427 | m_PrefabParentObject: {fileID: 0} 428 | m_PrefabInternal: {fileID: 0} 429 | m_GameObject: {fileID: 1183356443} 430 | m_Enabled: 1 431 | m_EditorHideFlags: 0 432 | m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 433 | m_Name: 434 | m_EditorClassIdentifier: 435 | m_UiScaleMode: 0 436 | m_ReferencePixelsPerUnit: 100 437 | m_ScaleFactor: 1 438 | m_ReferenceResolution: {x: 800, y: 600} 439 | m_ScreenMatchMode: 0 440 | m_MatchWidthOrHeight: 0 441 | m_PhysicalUnit: 3 442 | m_FallbackScreenDPI: 96 443 | m_DefaultSpriteDPI: 96 444 | m_DynamicPixelsPerUnit: 1 445 | --- !u!223 &1183356446 446 | Canvas: 447 | m_ObjectHideFlags: 0 448 | m_PrefabParentObject: {fileID: 0} 449 | m_PrefabInternal: {fileID: 0} 450 | m_GameObject: {fileID: 1183356443} 451 | m_Enabled: 1 452 | serializedVersion: 3 453 | m_RenderMode: 0 454 | m_Camera: {fileID: 0} 455 | m_PlaneDistance: 100 456 | m_PixelPerfect: 0 457 | m_ReceivesEvents: 1 458 | m_OverrideSorting: 0 459 | m_OverridePixelPerfect: 0 460 | m_SortingBucketNormalizedSize: 0 461 | m_AdditionalShaderChannelsFlag: 0 462 | m_SortingLayerID: 0 463 | m_SortingOrder: 0 464 | m_TargetDisplay: 0 465 | --- !u!224 &1183356447 466 | RectTransform: 467 | m_ObjectHideFlags: 0 468 | m_PrefabParentObject: {fileID: 0} 469 | m_PrefabInternal: {fileID: 0} 470 | m_GameObject: {fileID: 1183356443} 471 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 472 | m_LocalPosition: {x: 0, y: 0, z: 0} 473 | m_LocalScale: {x: 0, y: 0, z: 0} 474 | m_Children: 475 | - {fileID: 319516722} 476 | m_Father: {fileID: 0} 477 | m_RootOrder: 2 478 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 479 | m_AnchorMin: {x: 0, y: 0} 480 | m_AnchorMax: {x: 0, y: 0} 481 | m_AnchoredPosition: {x: 0, y: 0} 482 | m_SizeDelta: {x: 0, y: 0} 483 | m_Pivot: {x: 0, y: 0} 484 | --- !u!1 &1490721685 485 | GameObject: 486 | m_ObjectHideFlags: 0 487 | m_PrefabParentObject: {fileID: 0} 488 | m_PrefabInternal: {fileID: 0} 489 | serializedVersion: 5 490 | m_Component: 491 | - component: {fileID: 1490721688} 492 | - component: {fileID: 1490721687} 493 | - component: {fileID: 1490721686} 494 | m_Layer: 0 495 | m_Name: EventSystem 496 | m_TagString: Untagged 497 | m_Icon: {fileID: 0} 498 | m_NavMeshLayer: 0 499 | m_StaticEditorFlags: 0 500 | m_IsActive: 1 501 | --- !u!114 &1490721686 502 | MonoBehaviour: 503 | m_ObjectHideFlags: 0 504 | m_PrefabParentObject: {fileID: 0} 505 | m_PrefabInternal: {fileID: 0} 506 | m_GameObject: {fileID: 1490721685} 507 | m_Enabled: 1 508 | m_EditorHideFlags: 0 509 | m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 510 | m_Name: 511 | m_EditorClassIdentifier: 512 | m_HorizontalAxis: Horizontal 513 | m_VerticalAxis: Vertical 514 | m_SubmitButton: Submit 515 | m_CancelButton: Cancel 516 | m_InputActionsPerSecond: 10 517 | m_RepeatDelay: 0.5 518 | m_ForceModuleActive: 0 519 | --- !u!114 &1490721687 520 | MonoBehaviour: 521 | m_ObjectHideFlags: 0 522 | m_PrefabParentObject: {fileID: 0} 523 | m_PrefabInternal: {fileID: 0} 524 | m_GameObject: {fileID: 1490721685} 525 | m_Enabled: 1 526 | m_EditorHideFlags: 0 527 | m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 528 | m_Name: 529 | m_EditorClassIdentifier: 530 | m_FirstSelected: {fileID: 0} 531 | m_sendNavigationEvents: 1 532 | m_DragThreshold: 5 533 | --- !u!4 &1490721688 534 | Transform: 535 | m_ObjectHideFlags: 0 536 | m_PrefabParentObject: {fileID: 0} 537 | m_PrefabInternal: {fileID: 0} 538 | m_GameObject: {fileID: 1490721685} 539 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 540 | m_LocalPosition: {x: 0, y: 0, z: 0} 541 | m_LocalScale: {x: 1, y: 1, z: 1} 542 | m_Children: [] 543 | m_Father: {fileID: 0} 544 | m_RootOrder: 3 545 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 546 | --- !u!1 &2121124670 547 | GameObject: 548 | m_ObjectHideFlags: 0 549 | m_PrefabParentObject: {fileID: 0} 550 | m_PrefabInternal: {fileID: 0} 551 | serializedVersion: 5 552 | m_Component: 553 | - component: {fileID: 2121124671} 554 | - component: {fileID: 2121124673} 555 | - component: {fileID: 2121124672} 556 | m_Layer: 5 557 | m_Name: hhhhText 558 | m_TagString: Untagged 559 | m_Icon: {fileID: 0} 560 | m_NavMeshLayer: 0 561 | m_StaticEditorFlags: 0 562 | m_IsActive: 1 563 | --- !u!224 &2121124671 564 | RectTransform: 565 | m_ObjectHideFlags: 0 566 | m_PrefabParentObject: {fileID: 0} 567 | m_PrefabInternal: {fileID: 0} 568 | m_GameObject: {fileID: 2121124670} 569 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 570 | m_LocalPosition: {x: 0, y: 0, z: 0} 571 | m_LocalScale: {x: 1, y: 1, z: 1} 572 | m_Children: [] 573 | m_Father: {fileID: 319516722} 574 | m_RootOrder: 0 575 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 576 | m_AnchorMin: {x: 0, y: 0} 577 | m_AnchorMax: {x: 1, y: 1} 578 | m_AnchoredPosition: {x: 0, y: 0} 579 | m_SizeDelta: {x: 0, y: 0} 580 | m_Pivot: {x: 0.5, y: 0.5} 581 | --- !u!114 &2121124672 582 | MonoBehaviour: 583 | m_ObjectHideFlags: 0 584 | m_PrefabParentObject: {fileID: 0} 585 | m_PrefabInternal: {fileID: 0} 586 | m_GameObject: {fileID: 2121124670} 587 | m_Enabled: 1 588 | m_EditorHideFlags: 0 589 | m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 590 | m_Name: 591 | m_EditorClassIdentifier: 592 | m_Material: {fileID: 0} 593 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 594 | m_RaycastTarget: 1 595 | m_OnCullStateChanged: 596 | m_PersistentCalls: 597 | m_Calls: [] 598 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 599 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 600 | m_FontData: 601 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 602 | m_FontSize: 14 603 | m_FontStyle: 0 604 | m_BestFit: 0 605 | m_MinSize: 10 606 | m_MaxSize: 40 607 | m_Alignment: 4 608 | m_AlignByGeometry: 0 609 | m_RichText: 1 610 | m_HorizontalOverflow: 0 611 | m_VerticalOverflow: 0 612 | m_LineSpacing: 1 613 | m_Text: Button 614 | --- !u!222 &2121124673 615 | CanvasRenderer: 616 | m_ObjectHideFlags: 0 617 | m_PrefabParentObject: {fileID: 0} 618 | m_PrefabInternal: {fileID: 0} 619 | m_GameObject: {fileID: 2121124670} 620 | --------------------------------------------------------------------------------