├── .gitattributes ├── ScreenShots ├── 01.gif ├── 02.gif ├── 03.gif ├── 04.gif ├── inst1.gif ├── inst2.gif └── inst3.gif ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── NetworkManager.asset ├── EditorBuildSettings.asset ├── XRSettings.asset ├── TimeManager.asset ├── VFXManager.asset ├── AudioManager.asset ├── TagManager.asset ├── EditorSettings.asset ├── PresetManager.asset ├── UnityConnectSettings.asset ├── DynamicsManager.asset ├── Physics2DSettings.asset ├── NavMeshAreas.asset ├── GraphicsSettings.asset ├── QualitySettings.asset ├── InputManager.asset └── ProjectSettings.asset ├── Assets ├── UIScriptGenerator.meta └── UIScriptGenerator │ ├── Editor.meta │ └── Editor │ ├── UIScriptGenerator.cs.meta │ ├── UIScriptGenMemberType.cs.meta │ ├── UIScriptGeneratorEditor.cs.meta │ ├── UIScriptGenMemberType.cs │ ├── UIScriptGenerator.cs │ └── UIScriptGeneratorEditor.cs ├── README.md ├── LICENSE ├── .gitignore └── KoreanReadme.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /ScreenShots/01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shlifedev/unity-ui-gen/HEAD/ScreenShots/01.gif -------------------------------------------------------------------------------- /ScreenShots/02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shlifedev/unity-ui-gen/HEAD/ScreenShots/02.gif -------------------------------------------------------------------------------- /ScreenShots/03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shlifedev/unity-ui-gen/HEAD/ScreenShots/03.gif -------------------------------------------------------------------------------- /ScreenShots/04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shlifedev/unity-ui-gen/HEAD/ScreenShots/04.gif -------------------------------------------------------------------------------- /ScreenShots/inst1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shlifedev/unity-ui-gen/HEAD/ScreenShots/inst1.gif -------------------------------------------------------------------------------- /ScreenShots/inst2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shlifedev/unity-ui-gen/HEAD/ScreenShots/inst2.gif -------------------------------------------------------------------------------- /ScreenShots/inst3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shlifedev/unity-ui-gen/HEAD/ScreenShots/inst3.gif -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.1.0f2 2 | m_EditorVersionWithRevision: 2019.1.0f2 (292b93d75a2c) 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /Assets/UIScriptGenerator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fe02657c3c616b4abba844be7bcd462 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /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 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /Assets/UIScriptGenerator/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f65ddf658af5b58468514717dc8ec3c8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Assets/UIScriptGenerator/Editor/UIScriptGenerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15fc38781071d82468d4da6af702e960 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UIScriptGenerator/Editor/UIScriptGenMemberType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a65b83174b0307542869df9246b37564 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UIScriptGenerator/Editor/UIScriptGeneratorEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79354876498f4a04a8079935a7a7e22f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - PostProcessing 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UnityMemberGenerator 2 | This is Hierarchy Structure based UI Code Generator. 3 | 4 | * auto-region 5 | * auto-serialize attribute 6 | * access modifier 7 | * customize generate type. 8 | 9 | ## How to use it? 10 | 11 | * You can make auto-generate code as next. 12 | Just Right-click the game-object you want to be automatically member variable create. 13 | ![Instruction-1](https://github.com/shlifedev/unity-ui-gen/blob/main/ScreenShots/01.gif) 14 | 15 | 16 | * Wrap Region 17 | ![Instruction-1](https://github.com/shlifedev/unity-ui-gen/blob/main/ScreenShots/02.gif) 18 | 19 | 20 | * Component filter 21 | 22 | ![Instruction-1](https://github.com/shlifedev/unity-ui-gen/blob/main/ScreenShots/03.gif) 23 | 24 | 25 | * Auto generate public/private keyword. 26 | ![Instruction-1](https://github.com/shlifedev/unity-ui-gen/blob/main/ScreenShots/04.gif) 27 | 28 | 29 | -------------------------------------------------------------------------------- /Assets/UIScriptGenerator/Editor/UIScriptGenMemberType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Hamster.Unity.Utility 8 | { 9 | public class UIScriptGenMemberType 10 | { 11 | public static List typeList = new List(); 12 | public static bool IsValid(UnityEngine.Component component) 13 | { 14 | System.Type compoType = component.GetType(); 15 | for (int i = 0; i < typeList.Count; i++) 16 | { 17 | if (typeList[i] == compoType) 18 | { 19 | return true; 20 | } 21 | } 22 | return false; 23 | } 24 | public static void Add (System.Type type) 25 | { 26 | typeList.Add(type); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 1 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 1 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Cheese Allergy Hamsters 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 8 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_ReuseCollisionCallbacks: 1 28 | m_AutoSyncTransforms: 0 29 | m_AlwaysShowColliders: 0 30 | m_ShowColliderSleep: 1 31 | m_ShowColliderContacts: 0 32 | m_ShowColliderAABB: 0 33 | m_ContactArrowScale: 0.2 34 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 35 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 36 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 37 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 38 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | 3 | /[Ll]ibrary/ 4 | /[Tt]emp/ 5 | /[Oo]bj/ 6 | /[Bb]uild/ 7 | /[Bb]uilds/ 8 | /[Ll]ogs/ 9 | /[Mm]emoryCaptures/ 10 | /[Bb]uild/ 11 | /[Pp]ackages/ 12 | 13 | 14 | # Never ignore Asset meta data 15 | !/[Aa]ssets/**/*.meta 16 | 17 | # Uncomment this line if you wish to ignore the asset store tools plugin 18 | # /[Aa]ssets/AssetStoreTools* 19 | 20 | # TextMesh Pro files 21 | [Aa]ssets/TextMesh*Pro/ 22 | [Aa]ssets/Libs/ 23 | 24 | # Ignore Paid Data. 25 | [Aa]ssets/StreamingAssets/ 26 | [Aa]ssets/Standard Assets/ 27 | [Aa]ssets/Mad Compile Time Optimizer/ 28 | [Aa]ssets/Unity-Logs-Viewer/ 29 | [Aa]ssets/Plugins/ 30 | [Aa]ssets/StreamingAssets.meta 31 | [Aa]ssets/Standard Assets.meta 32 | [Aa]ssets/Mad Compile Time Optimizer.meta 33 | [Aa]ssets/Unity-Logs-Viewer.meta 34 | [Aa]ssets/Plugins.meta 35 | 36 | # Resource 37 | [Aa]ssets/Resource/ 38 | [Aa]ssets/Resources/ 39 | 40 | # Visual Studio cache directory 41 | .vs/ 42 | 43 | # Gradle cache directory 44 | .gradle/ 45 | 46 | # Autogenerated VS/MD/Consulo solution and project files 47 | ExportedObj/ 48 | .consulo/ 49 | *.csproj 50 | *.unityproj 51 | *.sln 52 | *.suo 53 | *.tmp 54 | *.user 55 | *.userprefs 56 | *.pidb 57 | *.booproj 58 | *.svd 59 | *.pdb 60 | *.mdb 61 | *.opendb 62 | *.VC.db 63 | 64 | # Unity3D generated meta files 65 | *.pidb.meta 66 | *.pdb.meta 67 | *.mdb.meta 68 | 69 | # Unity3D generated file on crash reports 70 | sysinfo.txt 71 | 72 | # Builds 73 | *.apk 74 | *.unitypackage 75 | 76 | # Crashlytics generated file 77 | crashlytics-build.properties 78 | Hangul.txt 79 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 41 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 42 | m_PreloadedShaders: [] 43 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 44 | type: 0} 45 | m_CustomRenderPipeline: {fileID: 0} 46 | m_TransparencySortMode: 0 47 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 48 | m_DefaultRenderingPath: 1 49 | m_DefaultMobileRenderingPath: 1 50 | m_TierSettings: [] 51 | m_LightmapStripping: 0 52 | m_FogStripping: 0 53 | m_InstancingStripping: 0 54 | m_LightmapKeepPlain: 1 55 | m_LightmapKeepDirCombined: 1 56 | m_LightmapKeepDynamicPlain: 1 57 | m_LightmapKeepDynamicDirCombined: 1 58 | m_LightmapKeepShadowMask: 1 59 | m_LightmapKeepSubtractive: 1 60 | m_FogKeepLinear: 1 61 | m_FogKeepExp: 1 62 | m_FogKeepExp2: 1 63 | m_AlbedoSwatchInfos: [] 64 | m_LightsUseLinearIntensity: 0 65 | m_LightsUseColorTemperature: 0 66 | -------------------------------------------------------------------------------- /KoreanReadme.md: -------------------------------------------------------------------------------- 1 | # UnityUGUIMemberGenerator 2 | 어디에든 적용가능한 멤버 스크립트 자동 생성기입니다. 3 | 4 | 현재 리포지토리명은 UGUI의 Image, Text 대상으로만 작성되어있기때문에 UGUI Prefix가 붙어있습니다. 5 | UI의 멤버 변수들을 자동으로 생성해주며 일반적으로 'MaskableGraphic'을 상속받는 6 | UI컴퍼넌트를 대상으로 작동합니다. 7 | 8 | ## 설명 9 | 다음과 같이 멤버스크립트를 자동생성 할 수 있습니다. 10 | ![Instruction-1](https://github.com/shlifedev/UnityUGUIMemberGenerator/blob/master/ScreenShots/inst1.gif) 11 | 다음과 같이 속성을 지정할 수 있습니다. 12 | ![Instruction-1](https://github.com/shlifedev/UnityUGUIMemberGenerator/blob/master/ScreenShots/inst2.gif) 13 | 다음과 같이 속성을 지정할 수 있습니다. 14 | ![Instruction-1](https://github.com/shlifedev/UnityUGUIMemberGenerator/blob/master/ScreenShots/inst3.gif) 15 | 16 | 17 | ## 커스텀 타입 추가하는방법 18 | UIScriptGenerator.cs를 열어 private static void CodeGenerator(List transforms) 함수에서 19 | 아래와같이 수정하세요 (<<<<<<<<----------- 확인) 20 | 21 | ``` csharp 22 | 23 | private static void CodeGenerator(List transforms) 24 | { 25 | 26 | StringBuilder builder = new StringBuilder(); 27 | if (UIScriptGeneratorEditor.WriteRegion == true) 28 | builder.AppendLine("#region " + UIScriptGeneratorEditor.Region + "\n"); 29 | 30 | 31 | for (int i = 0; i < transforms.Count; i++) 32 | { 33 | var compArr = transforms[i].GetComponents(); <<<<<<<<----------- Add Your Custom Component. 34 | foreach (var component in compArr) 35 | { 36 | string ret = null; 37 | if (component is Image) 38 | { 39 | ret = Write(UIScriptGeneratorEditor.AttrStr + UIScriptGeneratorEditor.AplStr, component.GetType().Name, component.name); 40 | } 41 | else if (component is Text) 42 | { 43 | ret = Write(UIScriptGeneratorEditor.AttrStr + UIScriptGeneratorEditor.AplStr, component.GetType().Name, component.name); 44 | } 45 | 46 | if (component is YourCustomComponent) <<<<<<<<----------- 47 | { 48 | ret = Write(UIScriptGeneratorEditor.AttrStr + UIScriptGeneratorEditor.AplStr, component.GetType().Name, component.name); 49 | } 50 | 51 | if (ret != null) 52 | builder.AppendLine(ret); 53 | } 54 | } 55 | 56 | ``` 57 | ======= 58 | ## 추가 예정기능 59 | - Serialize Field add prefix '_' , and start character Tolower. 60 | - Add Property Generator (Get/Set option) 61 | - Save Generator Option 62 | - Better Inspector Design. 63 | - Tree-Gen System. 64 | - if selected transform has Button(Image children text) then make space line. (for readability improve) 65 | - variable prefix character 66 | - user custom type (text, image, spriterenderer, gameobject .. etc) 67 | 68 | 69 | -------------------------------------------------------------------------------- /Assets/UIScriptGenerator/Editor/UIScriptGenerator.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEditor; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | namespace Hamster.Unity.Utility 8 | { 9 | public class UIScriptGenerator 10 | { 11 | public static List reflectionFields = new List(); 12 | public static string CompleteCode = null; 13 | private static List GetChilds(Transform target) 14 | { 15 | List < Transform >transformList = new List(); 16 | for (int i = 0; i < target.transform.childCount; i++) 17 | { 18 | var child = target.transform.GetChild(i); 19 | transformList.Add(child); 20 | } 21 | return transformList; 22 | } 23 | private static void DeepSearch(Transform target, List makedList) 24 | { 25 | List childs = GetChilds(target); 26 | if (childs.Count == 0) 27 | { 28 | return; 29 | } 30 | else 31 | { 32 | 33 | for (int i = 0; i < childs.Count; i++) 34 | { 35 | makedList.Add(childs[i]); 36 | DeepSearch(childs[i], makedList); 37 | } 38 | } 39 | 40 | } 41 | 42 | private static List> GetObjectChilds(Transform transform) 43 | { 44 | return null; 45 | } 46 | 47 | public static List Search(Transform target) 48 | { 49 | var transformList = new List(); 50 | DeepSearch(target, transformList); 51 | return transformList; 52 | } 53 | 54 | 55 | [MenuItem("GameObject/Run Generator", false, -1)] 56 | public static void GenScript(MenuCommand command) 57 | { 58 | Transform selectedObj = UnityEditor.Selection.activeTransform; 59 | if (selectedObj == null) return; 60 | var list = Search(selectedObj); 61 | CodeGenerator(list); 62 | } 63 | 64 | 65 | private static void InitType() 66 | { 67 | CompleteCode = " Wait .. "; 68 | 69 | UIScriptGenMemberType.typeList.Clear(); 70 | UIScriptGeneratorEditor.Window?.Repaint(); 71 | if(reflectionFields.Count == 0) 72 | { 73 | reflectionFields.Add(typeof(Image).FullName); 74 | reflectionFields.Add(typeof(Text).FullName); 75 | } 76 | var assemblies = System.AppDomain.CurrentDomain.GetAssemblies(); 77 | for (int i = 0; i < assemblies.Length; i++) 78 | { 79 | for (int n = 0; n < reflectionFields.Count; n++) 80 | { 81 | var type = assemblies[i].GetType(reflectionFields[n]); 82 | if(type != null) 83 | { 84 | UIScriptGenMemberType.Add(type); 85 | } 86 | } 87 | } 88 | 89 | 90 | } 91 | 92 | private static void CodeGenerator(List transforms) 93 | { 94 | InitType(); 95 | StringBuilder builder = new StringBuilder(); 96 | if (UIScriptGeneratorEditor.WriteRegion == true) 97 | builder.AppendLine("#region " + UIScriptGeneratorEditor.Region + "\n"); 98 | 99 | 100 | for (int i = 0; i < transforms.Count; i++) 101 | { 102 | var compArr = transforms[i].GetComponents(); 103 | foreach (var component in compArr) 104 | { 105 | string ret = null; 106 | 107 | if(UIScriptGenMemberType.IsValid(component)) 108 | { 109 | string componentName = (UIScriptGeneratorEditor.WriteComponentName == false) ? component.name : component.GetType().Name + "_" + component.name; 110 | ret = Write(UIScriptGeneratorEditor.AttrStr + UIScriptGeneratorEditor.AplStr, component.GetType().Name, componentName); 111 | } 112 | if (ret != null) 113 | builder.AppendLine(ret); 114 | } 115 | } 116 | 117 | if (UIScriptGeneratorEditor.WriteRegion) 118 | builder.AppendLine("\n#endregion"); 119 | 120 | CompleteCode = builder.ToString(); 121 | UIScriptGeneratorEditor.OpenWindow(); 122 | 123 | } 124 | 125 | 126 | 127 | private static string Write(string accessMidifier, string variableType, string variableName) 128 | { 129 | StringBuilder builder = new StringBuilder(); 130 | builder.Append(accessMidifier + " "); 131 | builder.Append(variableType + " "); 132 | builder.Append(variableName + ";"); 133 | return builder.ToString(); 134 | } 135 | } 136 | } -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 4 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 16 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 16 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 16 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 2 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 16 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 40 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 1 136 | antiAliasing: 4 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 16 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 1 164 | antiAliasing: 4 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 16 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSP2: 2 183 | Standalone: 5 184 | Tizen: 2 185 | WebGL: 3 186 | WiiU: 5 187 | Windows Store Apps: 5 188 | XboxOne: 5 189 | iPhone: 2 190 | tvOS: 2 191 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /Assets/UIScriptGenerator/Editor/UIScriptGeneratorEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEditor; 7 | using UnityEngine; 8 | namespace Hamster.Unity.Utility 9 | { 10 | [Serializable] 11 | public class UIScriptGeneratorEditor : UnityEditor.EditorWindow 12 | { 13 | 14 | public enum AccessPermissionLevel { None, PUBLIC, PRIVATE }; 15 | public enum Attribute { None, SerializeField }; 16 | private static bool writeRegion = false; 17 | private static bool writeComponentName = false; 18 | private static string region = "SetRegionName"; 19 | 20 | private static AccessPermissionLevel apl = AccessPermissionLevel.None; 21 | private static Attribute attr = Attribute.SerializeField; 22 | private static UIScriptGeneratorEditor m_window = null; 23 | public static AccessPermissionLevel Apl { get => apl; } 24 | 25 | [SerializeField] public List reflectionFields = new List(); 26 | public static string AplStr 27 | { 28 | get 29 | { 30 | if (apl == AccessPermissionLevel.None) return null; 31 | if (apl == AccessPermissionLevel.PRIVATE) return "private"; 32 | if (apl == AccessPermissionLevel.PUBLIC) return "public"; 33 | 34 | return null; 35 | } 36 | } 37 | public static Attribute Attr { get => attr; } 38 | public static string AttrStr 39 | { 40 | get 41 | { 42 | if (attr == Attribute.None) return null; 43 | var ret = "[" + attr.ToString() + "] "; 44 | return ret; 45 | } 46 | } 47 | 48 | public static bool WriteRegion { get => writeRegion; set => writeRegion = value; } 49 | public static string Region { get => region; set => region = value; } 50 | public static UIScriptGeneratorEditor Window { get => m_window; set => m_window = value; } 51 | public static bool WriteComponentName { get => writeComponentName; set => writeComponentName = value; } 52 | 53 | [MenuItem("UIScriptGeneratorEditor/Code")] 54 | public static void OpenWindow() 55 | { 56 | if (Window == null) 57 | Window = EditorWindow.GetWindow(typeof(UIScriptGeneratorEditor)) as UIScriptGeneratorEditor; 58 | Window.titleContent = new GUIContent("Member Generator", "Make by.CheeseAllergyHamster "); 59 | Window.Show(); 60 | } 61 | 62 | 63 | private void DrawButtons() 64 | { 65 | 66 | if (GUILayout.Button("Clear")) { reflectionFields.Clear(); } 67 | 68 | GUILayout.BeginHorizontal(); 69 | 70 | GUILayout.BeginVertical(); 71 | GUILayout.Label("UI Components"); 72 | if (GUILayout.Button("UI.Image")) { string type = "UnityEngine.UI.Image"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 73 | if (GUILayout.Button("UI.Text")) { string type = "UnityEngine.UI.Text"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 74 | if (GUILayout.Button("UI.ScrollRect")) { string type = "UnityEngine.UI.ScrollRect"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 75 | if (GUILayout.Button("UI.Button")) { string type = "UnityEngine.UI.Button"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 76 | GUILayout.EndVertical(); 77 | 78 | 79 | GUILayout.BeginVertical(); 80 | GUILayout.Label("UnityEngine Components"); 81 | 82 | if (GUILayout.Button("Transform")) { string type = "UnityEngine.Transform"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 83 | if (GUILayout.Button("RectTransform")) { string type = "UnityEngine.RectTransform"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 84 | if (GUILayout.Button("SpriteRenderer")) { string type = "UnityEngine.SpriteRenderer"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 85 | if (GUILayout.Button("MeshRenderer")) { string type = "UnityEngine.MeshRenderer"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 86 | if (GUILayout.Button("Box Collider")) { string type = "UnityEngine.BoxCollider"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 87 | if (GUILayout.Button("Box Collider2D")) { string type = "UnityEngine.BoxCollider2D"; if (reflectionFields.Contains(type) == false) reflectionFields.Add(type); } 88 | GUILayout.EndVertical(); 89 | 90 | GUILayout.BeginVertical(); 91 | GUILayout.Label("Preset"); 92 | if (GUILayout.Button("UISet")) { reflectionFields.Clear(); reflectionFields.Add("UnityEngine.UI.Image"); reflectionFields.Add("UnityEngine.UI.Text"); }; 93 | if (GUILayout.Button("UISet2")) { reflectionFields.Clear(); reflectionFields.Add("UnityEngine.UI.Image"); reflectionFields.Add("UnityEngine.UI.Text"); reflectionFields.Add("UnityEngine.UI.Button"); reflectionFields.Add("UnityEngine.UI.GridLayoutGroup"); }; 94 | if (GUILayout.Button("UISet3")) { reflectionFields.Clear(); reflectionFields.Add("UnityEngine.UI.Image"); reflectionFields.Add("UnityEngine.UI.Text"); reflectionFields.Add("UnityEngine.UI.Button"); reflectionFields.Add("UnityEngine.UI.GridLayoutGroup"); reflectionFields.Add("UnityEngine.UI.ScrollRect"); }; 95 | if (GUILayout.Button(" = ㅅ =")) { Debug.Log(" Nooooooooo Empty Function :("); }; 96 | GUILayout.EndVertical(); 97 | 98 | GUILayout.EndHorizontal(); 99 | } 100 | private void DrawSourceCodeWindow() 101 | { 102 | GUI.contentColor = Color.white; 103 | UIScriptGenerator.reflectionFields = this.reflectionFields; 104 | SerializedObject serializedObject = new UnityEditor.SerializedObject(this); 105 | SerializedProperty b = serializedObject.FindProperty("reflectionFields"); 106 | GUILayout.Label("Generated Code :)"); 107 | UIScriptGenerator.CompleteCode = EditorGUILayout.TextArea(UIScriptGenerator.CompleteCode); 108 | 109 | GUILayout.Label("Option"); 110 | 111 | Region = EditorGUILayout.TextField(Region); 112 | WriteRegion = GUILayout.Toggle(WriteRegion, "Use Region"); 113 | WriteComponentName = GUILayout.Toggle(WriteComponentName, "Include Component Name"); 114 | apl = (AccessPermissionLevel)EditorGUILayout.EnumPopup("AccessPermissionLevel", Apl); 115 | attr = (Attribute)EditorGUILayout.EnumPopup("Attribute", Attr); 116 | GUI.contentColor = Color.red; 117 | GUILayout.Label("Member List (Please Namespace Include!)"); 118 | GUI.contentColor = Color.green; 119 | EditorGUILayout.PropertyField(b, new GUIContent("TypeList"), true); 120 | 121 | 122 | /// Custom Array Draw~~ 123 | if (b.arraySize != reflectionFields.Count) 124 | { 125 | reflectionFields.Clear(); 126 | for (int i = 0; i < b.arraySize; i++) 127 | { 128 | reflectionFields.Add(b.GetArrayElementAtIndex(i).stringValue); 129 | } 130 | } 131 | else 132 | { 133 | for (int i = 0; i < b.arraySize; i++) 134 | { 135 | reflectionFields[i] = (b.GetArrayElementAtIndex(i).stringValue); 136 | 137 | } 138 | } 139 | 140 | 141 | } 142 | private void OnGUI() 143 | { 144 | DrawSourceCodeWindow(); 145 | DrawButtons(); 146 | } 147 | } 148 | } -------------------------------------------------------------------------------- /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: 16 7 | productGUID: 6676ec9155e06cd45b3ec2447371c146 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: UnityTestFramework 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 0 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 0 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 1 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | resizableWindow: 1 83 | useMacAppStoreValidation: 0 84 | macAppStoreCategory: public.app-category.games 85 | gpuSkinning: 1 86 | graphicsJobs: 0 87 | xboxPIXTextureCapture: 0 88 | xboxEnableAvatar: 0 89 | xboxEnableKinect: 0 90 | xboxEnableKinectAutoTracking: 0 91 | xboxEnableFitness: 0 92 | visibleInBackground: 1 93 | allowFullscreenSwitch: 1 94 | graphicsJobMode: 0 95 | fullscreenMode: 3 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | xboxOneResolution: 0 102 | xboxOneSResolution: 0 103 | xboxOneXResolution: 3 104 | xboxOneMonoLoggingLevel: 0 105 | xboxOneLoggingLevel: 1 106 | xboxOneDisableEsram: 0 107 | xboxOnePresentImmediateThreshold: 0 108 | switchQueueCommandMemory: 0 109 | switchQueueControlMemory: 16384 110 | switchQueueComputeMemory: 262144 111 | switchNVNShaderPoolsGranularity: 33554432 112 | switchNVNDefaultPoolsGranularity: 16777216 113 | switchNVNOtherPoolsGranularity: 16777216 114 | vulkanEnableSetSRGBWrite: 0 115 | m_SupportedAspectRatios: 116 | 4:3: 1 117 | 5:4: 1 118 | 16:10: 1 119 | 16:9: 1 120 | Others: 1 121 | bundleVersion: 0.1 122 | preloadedAssets: [] 123 | metroInputSource: 0 124 | wsaTransparentSwapchain: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 1 127 | xboxOneEnable7thCore: 1 128 | vrSettings: 129 | cardboard: 130 | depthFormat: 0 131 | enableTransitionView: 0 132 | daydream: 133 | depthFormat: 0 134 | useSustainedPerformanceMode: 0 135 | enableVideoLayer: 0 136 | useProtectedVideoMemory: 0 137 | minimumSupportedHeadTracking: 0 138 | maximumSupportedHeadTracking: 1 139 | hololens: 140 | depthFormat: 1 141 | depthBufferSharingEnabled: 1 142 | lumin: 143 | depthFormat: 0 144 | frameTiming: 2 145 | enableGLCache: 0 146 | glCacheMaxBlobSize: 524288 147 | glCacheMaxFileSize: 8388608 148 | oculus: 149 | sharedDepthBuffer: 1 150 | dashSupport: 1 151 | enable360StereoCapture: 0 152 | isWsaHolographicRemotingEnabled: 0 153 | protectGraphicsMemory: 0 154 | enableFrameTimingStats: 0 155 | useHDRDisplay: 0 156 | m_ColorGamuts: 00000000 157 | targetPixelDensity: 30 158 | resolutionScalingMode: 0 159 | androidSupportedAspectRatio: 1 160 | androidMaxAspectRatio: 2.1 161 | applicationIdentifier: {} 162 | buildNumber: {} 163 | AndroidBundleVersionCode: 1 164 | AndroidMinSdkVersion: 16 165 | AndroidTargetSdkVersion: 0 166 | AndroidPreferredInstallLocation: 1 167 | aotOptions: nimt-trampolines=1024 168 | stripEngineCode: 1 169 | iPhoneStrippingLevel: 0 170 | iPhoneScriptCallOptimization: 0 171 | ForceInternetPermission: 0 172 | ForceSDCardPermission: 0 173 | CreateWallpaper: 0 174 | APKExpansionFiles: 0 175 | keepLoadedShadersAlive: 0 176 | StripUnusedMeshComponents: 1 177 | VertexChannelCompressionMask: 4054 178 | iPhoneSdkVersion: 988 179 | iOSTargetOSVersionString: 9.0 180 | tvOSSdkVersion: 0 181 | tvOSRequireExtendedGameController: 0 182 | tvOSTargetOSVersionString: 9.0 183 | uIPrerenderedIcon: 0 184 | uIRequiresPersistentWiFi: 0 185 | uIRequiresFullScreen: 1 186 | uIStatusBarHidden: 1 187 | uIExitOnSuspend: 0 188 | uIStatusBarStyle: 0 189 | iPhoneSplashScreen: {fileID: 0} 190 | iPhoneHighResSplashScreen: {fileID: 0} 191 | iPhoneTallHighResSplashScreen: {fileID: 0} 192 | iPhone47inSplashScreen: {fileID: 0} 193 | iPhone55inPortraitSplashScreen: {fileID: 0} 194 | iPhone55inLandscapeSplashScreen: {fileID: 0} 195 | iPhone58inPortraitSplashScreen: {fileID: 0} 196 | iPhone58inLandscapeSplashScreen: {fileID: 0} 197 | iPadPortraitSplashScreen: {fileID: 0} 198 | iPadHighResPortraitSplashScreen: {fileID: 0} 199 | iPadLandscapeSplashScreen: {fileID: 0} 200 | iPadHighResLandscapeSplashScreen: {fileID: 0} 201 | iPhone65inPortraitSplashScreen: {fileID: 0} 202 | iPhone65inLandscapeSplashScreen: {fileID: 0} 203 | iPhone61inPortraitSplashScreen: {fileID: 0} 204 | iPhone61inLandscapeSplashScreen: {fileID: 0} 205 | appleTVSplashScreen: {fileID: 0} 206 | appleTVSplashScreen2x: {fileID: 0} 207 | tvOSSmallIconLayers: [] 208 | tvOSSmallIconLayers2x: [] 209 | tvOSLargeIconLayers: [] 210 | tvOSLargeIconLayers2x: [] 211 | tvOSTopShelfImageLayers: [] 212 | tvOSTopShelfImageLayers2x: [] 213 | tvOSTopShelfImageWideLayers: [] 214 | tvOSTopShelfImageWideLayers2x: [] 215 | iOSLaunchScreenType: 0 216 | iOSLaunchScreenPortrait: {fileID: 0} 217 | iOSLaunchScreenLandscape: {fileID: 0} 218 | iOSLaunchScreenBackgroundColor: 219 | serializedVersion: 2 220 | rgba: 0 221 | iOSLaunchScreenFillPct: 100 222 | iOSLaunchScreenSize: 100 223 | iOSLaunchScreenCustomXibPath: 224 | iOSLaunchScreeniPadType: 0 225 | iOSLaunchScreeniPadImage: {fileID: 0} 226 | iOSLaunchScreeniPadBackgroundColor: 227 | serializedVersion: 2 228 | rgba: 0 229 | iOSLaunchScreeniPadFillPct: 100 230 | iOSLaunchScreeniPadSize: 100 231 | iOSLaunchScreeniPadCustomXibPath: 232 | iOSUseLaunchScreenStoryboard: 0 233 | iOSLaunchScreenCustomStoryboardPath: 234 | iOSDeviceRequirements: [] 235 | iOSURLSchemes: [] 236 | iOSBackgroundModes: 0 237 | iOSMetalForceHardShadows: 0 238 | metalEditorSupport: 1 239 | metalAPIValidation: 1 240 | iOSRenderExtraFrameOnPause: 0 241 | appleDeveloperTeamID: 242 | iOSManualSigningProvisioningProfileID: 243 | tvOSManualSigningProvisioningProfileID: 244 | iOSManualSigningProvisioningProfileType: 0 245 | tvOSManualSigningProvisioningProfileType: 0 246 | appleEnableAutomaticSigning: 0 247 | iOSRequireARKit: 0 248 | iOSAutomaticallyDetectAndAddCapabilities: 1 249 | appleEnableProMotion: 0 250 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 251 | templatePackageId: com.unity.template.3d@1.3.0 252 | templateDefaultScene: Assets/Scenes/SampleScene.unity 253 | AndroidTargetArchitectures: 5 254 | AndroidSplashScreenScale: 0 255 | androidSplashScreen: {fileID: 0} 256 | AndroidKeystoreName: '{inproject}: ' 257 | AndroidKeyaliasName: 258 | AndroidBuildApkPerCpuArchitecture: 0 259 | AndroidTVCompatibility: 1 260 | AndroidIsGame: 1 261 | AndroidEnableTango: 0 262 | androidEnableBanner: 1 263 | androidUseLowAccuracyLocation: 0 264 | androidUseCustomKeystore: 0 265 | m_AndroidBanners: 266 | - width: 320 267 | height: 180 268 | banner: {fileID: 0} 269 | androidGamepadSupportLevel: 0 270 | resolutionDialogBanner: {fileID: 0} 271 | m_BuildTargetIcons: [] 272 | m_BuildTargetPlatformIcons: [] 273 | m_BuildTargetBatching: 274 | - m_BuildTarget: Standalone 275 | m_StaticBatching: 1 276 | m_DynamicBatching: 0 277 | - m_BuildTarget: tvOS 278 | m_StaticBatching: 1 279 | m_DynamicBatching: 0 280 | - m_BuildTarget: Android 281 | m_StaticBatching: 1 282 | m_DynamicBatching: 0 283 | - m_BuildTarget: iPhone 284 | m_StaticBatching: 1 285 | m_DynamicBatching: 0 286 | - m_BuildTarget: WebGL 287 | m_StaticBatching: 0 288 | m_DynamicBatching: 0 289 | m_BuildTargetGraphicsAPIs: 290 | - m_BuildTarget: AndroidPlayer 291 | m_APIs: 0b00000008000000 292 | m_Automatic: 1 293 | - m_BuildTarget: iOSSupport 294 | m_APIs: 10000000 295 | m_Automatic: 1 296 | - m_BuildTarget: AppleTVSupport 297 | m_APIs: 10000000 298 | m_Automatic: 0 299 | - m_BuildTarget: WebGLSupport 300 | m_APIs: 0b000000 301 | m_Automatic: 1 302 | m_BuildTargetVRSettings: 303 | - m_BuildTarget: Standalone 304 | m_Enabled: 0 305 | m_Devices: 306 | - Oculus 307 | - OpenVR 308 | m_BuildTargetEnableVuforiaSettings: [] 309 | openGLRequireES31: 0 310 | openGLRequireES31AEP: 0 311 | openGLRequireES32: 0 312 | m_TemplateCustomTags: {} 313 | mobileMTRendering: 314 | Android: 1 315 | iPhone: 1 316 | tvOS: 1 317 | m_BuildTargetGroupLightmapEncodingQuality: [] 318 | m_BuildTargetGroupLightmapSettings: [] 319 | playModeTestRunnerEnabled: 0 320 | runPlayModeTestAsEditModeTest: 0 321 | actionOnDotNetUnhandledException: 1 322 | enableInternalProfiler: 0 323 | logObjCUncaughtExceptions: 1 324 | enableCrashReportAPI: 0 325 | cameraUsageDescription: 326 | locationUsageDescription: 327 | microphoneUsageDescription: 328 | switchNetLibKey: 329 | switchSocketMemoryPoolSize: 6144 330 | switchSocketAllocatorPoolSize: 128 331 | switchSocketConcurrencyLimit: 14 332 | switchScreenResolutionBehavior: 2 333 | switchUseCPUProfiler: 0 334 | switchApplicationID: 0x01004b9000490000 335 | switchNSODependencies: 336 | switchTitleNames_0: 337 | switchTitleNames_1: 338 | switchTitleNames_2: 339 | switchTitleNames_3: 340 | switchTitleNames_4: 341 | switchTitleNames_5: 342 | switchTitleNames_6: 343 | switchTitleNames_7: 344 | switchTitleNames_8: 345 | switchTitleNames_9: 346 | switchTitleNames_10: 347 | switchTitleNames_11: 348 | switchTitleNames_12: 349 | switchTitleNames_13: 350 | switchTitleNames_14: 351 | switchPublisherNames_0: 352 | switchPublisherNames_1: 353 | switchPublisherNames_2: 354 | switchPublisherNames_3: 355 | switchPublisherNames_4: 356 | switchPublisherNames_5: 357 | switchPublisherNames_6: 358 | switchPublisherNames_7: 359 | switchPublisherNames_8: 360 | switchPublisherNames_9: 361 | switchPublisherNames_10: 362 | switchPublisherNames_11: 363 | switchPublisherNames_12: 364 | switchPublisherNames_13: 365 | switchPublisherNames_14: 366 | switchIcons_0: {fileID: 0} 367 | switchIcons_1: {fileID: 0} 368 | switchIcons_2: {fileID: 0} 369 | switchIcons_3: {fileID: 0} 370 | switchIcons_4: {fileID: 0} 371 | switchIcons_5: {fileID: 0} 372 | switchIcons_6: {fileID: 0} 373 | switchIcons_7: {fileID: 0} 374 | switchIcons_8: {fileID: 0} 375 | switchIcons_9: {fileID: 0} 376 | switchIcons_10: {fileID: 0} 377 | switchIcons_11: {fileID: 0} 378 | switchIcons_12: {fileID: 0} 379 | switchIcons_13: {fileID: 0} 380 | switchIcons_14: {fileID: 0} 381 | switchSmallIcons_0: {fileID: 0} 382 | switchSmallIcons_1: {fileID: 0} 383 | switchSmallIcons_2: {fileID: 0} 384 | switchSmallIcons_3: {fileID: 0} 385 | switchSmallIcons_4: {fileID: 0} 386 | switchSmallIcons_5: {fileID: 0} 387 | switchSmallIcons_6: {fileID: 0} 388 | switchSmallIcons_7: {fileID: 0} 389 | switchSmallIcons_8: {fileID: 0} 390 | switchSmallIcons_9: {fileID: 0} 391 | switchSmallIcons_10: {fileID: 0} 392 | switchSmallIcons_11: {fileID: 0} 393 | switchSmallIcons_12: {fileID: 0} 394 | switchSmallIcons_13: {fileID: 0} 395 | switchSmallIcons_14: {fileID: 0} 396 | switchManualHTML: 397 | switchAccessibleURLs: 398 | switchLegalInformation: 399 | switchMainThreadStackSize: 1048576 400 | switchPresenceGroupId: 401 | switchLogoHandling: 0 402 | switchReleaseVersion: 0 403 | switchDisplayVersion: 1.0.0 404 | switchStartupUserAccount: 0 405 | switchTouchScreenUsage: 0 406 | switchSupportedLanguagesMask: 0 407 | switchLogoType: 0 408 | switchApplicationErrorCodeCategory: 409 | switchUserAccountSaveDataSize: 0 410 | switchUserAccountSaveDataJournalSize: 0 411 | switchApplicationAttribute: 0 412 | switchCardSpecSize: -1 413 | switchCardSpecClock: -1 414 | switchRatingsMask: 0 415 | switchRatingsInt_0: 0 416 | switchRatingsInt_1: 0 417 | switchRatingsInt_2: 0 418 | switchRatingsInt_3: 0 419 | switchRatingsInt_4: 0 420 | switchRatingsInt_5: 0 421 | switchRatingsInt_6: 0 422 | switchRatingsInt_7: 0 423 | switchRatingsInt_8: 0 424 | switchRatingsInt_9: 0 425 | switchRatingsInt_10: 0 426 | switchRatingsInt_11: 0 427 | switchLocalCommunicationIds_0: 428 | switchLocalCommunicationIds_1: 429 | switchLocalCommunicationIds_2: 430 | switchLocalCommunicationIds_3: 431 | switchLocalCommunicationIds_4: 432 | switchLocalCommunicationIds_5: 433 | switchLocalCommunicationIds_6: 434 | switchLocalCommunicationIds_7: 435 | switchParentalControl: 0 436 | switchAllowsScreenshot: 1 437 | switchAllowsVideoCapturing: 1 438 | switchAllowsRuntimeAddOnContentInstall: 0 439 | switchDataLossConfirmation: 0 440 | switchUserAccountLockEnabled: 0 441 | switchSystemResourceMemory: 16777216 442 | switchSupportedNpadStyles: 3 443 | switchNativeFsCacheSize: 32 444 | switchIsHoldTypeHorizontal: 0 445 | switchSupportedNpadCount: 8 446 | switchSocketConfigEnabled: 0 447 | switchTcpInitialSendBufferSize: 32 448 | switchTcpInitialReceiveBufferSize: 64 449 | switchTcpAutoSendBufferSizeMax: 256 450 | switchTcpAutoReceiveBufferSizeMax: 256 451 | switchUdpSendBufferSize: 9 452 | switchUdpReceiveBufferSize: 42 453 | switchSocketBufferEfficiency: 4 454 | switchSocketInitializeEnabled: 1 455 | switchNetworkInterfaceManagerInitializeEnabled: 1 456 | switchPlayerConnectionEnabled: 1 457 | ps4NPAgeRating: 12 458 | ps4NPTitleSecret: 459 | ps4NPTrophyPackPath: 460 | ps4ParentalLevel: 11 461 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 462 | ps4Category: 0 463 | ps4MasterVersion: 01.00 464 | ps4AppVersion: 01.00 465 | ps4AppType: 0 466 | ps4ParamSfxPath: 467 | ps4VideoOutPixelFormat: 0 468 | ps4VideoOutInitialWidth: 1920 469 | ps4VideoOutBaseModeInitialWidth: 1920 470 | ps4VideoOutReprojectionRate: 60 471 | ps4PronunciationXMLPath: 472 | ps4PronunciationSIGPath: 473 | ps4BackgroundImagePath: 474 | ps4StartupImagePath: 475 | ps4StartupImagesFolder: 476 | ps4IconImagesFolder: 477 | ps4SaveDataImagePath: 478 | ps4SdkOverride: 479 | ps4BGMPath: 480 | ps4ShareFilePath: 481 | ps4ShareOverlayImagePath: 482 | ps4PrivacyGuardImagePath: 483 | ps4NPtitleDatPath: 484 | ps4RemotePlayKeyAssignment: -1 485 | ps4RemotePlayKeyMappingDir: 486 | ps4PlayTogetherPlayerCount: 0 487 | ps4EnterButtonAssignment: 1 488 | ps4ApplicationParam1: 0 489 | ps4ApplicationParam2: 0 490 | ps4ApplicationParam3: 0 491 | ps4ApplicationParam4: 0 492 | ps4DownloadDataSize: 0 493 | ps4GarlicHeapSize: 2048 494 | ps4ProGarlicHeapSize: 2560 495 | playerPrefsMaxSize: 32768 496 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 497 | ps4pnSessions: 1 498 | ps4pnPresence: 1 499 | ps4pnFriends: 1 500 | ps4pnGameCustomData: 1 501 | playerPrefsSupport: 0 502 | enableApplicationExit: 0 503 | resetTempFolder: 1 504 | restrictedAudioUsageRights: 0 505 | ps4UseResolutionFallback: 0 506 | ps4ReprojectionSupport: 0 507 | ps4UseAudio3dBackend: 0 508 | ps4SocialScreenEnabled: 0 509 | ps4ScriptOptimizationLevel: 0 510 | ps4Audio3dVirtualSpeakerCount: 14 511 | ps4attribCpuUsage: 0 512 | ps4PatchPkgPath: 513 | ps4PatchLatestPkgPath: 514 | ps4PatchChangeinfoPath: 515 | ps4PatchDayOne: 0 516 | ps4attribUserManagement: 0 517 | ps4attribMoveSupport: 0 518 | ps4attrib3DSupport: 0 519 | ps4attribShareSupport: 0 520 | ps4attribExclusiveVR: 0 521 | ps4disableAutoHideSplash: 0 522 | ps4videoRecordingFeaturesUsed: 0 523 | ps4contentSearchFeaturesUsed: 0 524 | ps4attribEyeToEyeDistanceSettingVR: 0 525 | ps4IncludedModules: [] 526 | monoEnv: 527 | splashScreenBackgroundSourceLandscape: {fileID: 0} 528 | splashScreenBackgroundSourcePortrait: {fileID: 0} 529 | spritePackerPolicy: 530 | webGLMemorySize: 256 531 | webGLExceptionSupport: 1 532 | webGLNameFilesAsHashes: 0 533 | webGLDataCaching: 1 534 | webGLDebugSymbols: 0 535 | webGLEmscriptenArgs: 536 | webGLModulesDirectory: 537 | webGLTemplate: APPLICATION:Default 538 | webGLAnalyzeBuildSize: 0 539 | webGLUseEmbeddedResources: 0 540 | webGLCompressionFormat: 1 541 | webGLLinkerTarget: 1 542 | webGLThreadsSupport: 0 543 | webGLWasmStreaming: 0 544 | scriptingDefineSymbols: {} 545 | platformArchitecture: {} 546 | scriptingBackend: {} 547 | il2cppCompilerConfiguration: {} 548 | managedStrippingLevel: {} 549 | incrementalIl2cppBuild: {} 550 | allowUnsafeCode: 0 551 | additionalIl2CppArgs: 552 | scriptingRuntimeVersion: 1 553 | gcIncremental: 0 554 | gcWBarrierValidation: 0 555 | apiCompatibilityLevelPerPlatform: 556 | Standalone: 6 557 | m_RenderingPath: 1 558 | m_MobileRenderingPath: 1 559 | metroPackageName: Template_3D 560 | metroPackageVersion: 561 | metroCertificatePath: 562 | metroCertificatePassword: 563 | metroCertificateSubject: 564 | metroCertificateIssuer: 565 | metroCertificateNotAfter: 0000000000000000 566 | metroApplicationDescription: Template_3D 567 | wsaImages: {} 568 | metroTileShortName: 569 | metroTileShowName: 0 570 | metroMediumTileShowName: 0 571 | metroLargeTileShowName: 0 572 | metroWideTileShowName: 0 573 | metroSupportStreamingInstall: 0 574 | metroLastRequiredScene: 0 575 | metroDefaultTileSize: 1 576 | metroTileForegroundText: 2 577 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 578 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 579 | a: 1} 580 | metroSplashScreenUseBackgroundColor: 0 581 | platformCapabilities: {} 582 | metroTargetDeviceFamilies: {} 583 | metroFTAName: 584 | metroFTAFileTypes: [] 585 | metroProtocolName: 586 | XboxOneProductId: 587 | XboxOneUpdateKey: 588 | XboxOneSandboxId: 589 | XboxOneContentId: 590 | XboxOneTitleId: 591 | XboxOneSCId: 592 | XboxOneGameOsOverridePath: 593 | XboxOnePackagingOverridePath: 594 | XboxOneAppManifestOverridePath: 595 | XboxOneVersion: 1.0.0.0 596 | XboxOnePackageEncryption: 0 597 | XboxOnePackageUpdateGranularity: 2 598 | XboxOneDescription: 599 | XboxOneLanguage: 600 | - enus 601 | XboxOneCapability: [] 602 | XboxOneGameRating: {} 603 | XboxOneIsContentPackage: 0 604 | XboxOneEnableGPUVariability: 1 605 | XboxOneSockets: {} 606 | XboxOneSplashScreen: {fileID: 0} 607 | XboxOneAllowedProductIds: [] 608 | XboxOnePersistentLocalStorageSize: 0 609 | XboxOneXTitleMemory: 8 610 | xboxOneScriptCompiler: 1 611 | XboxOneOverrideIdentityName: 612 | vrEditorSettings: 613 | daydream: 614 | daydreamIconForeground: {fileID: 0} 615 | daydreamIconBackground: {fileID: 0} 616 | cloudServicesEnabled: 617 | UNet: 1 618 | luminIcon: 619 | m_Name: 620 | m_ModelFolderPath: 621 | m_PortalFolderPath: 622 | luminCert: 623 | m_CertPath: 624 | m_SignPackage: 1 625 | luminIsChannelApp: 0 626 | luminVersion: 627 | m_VersionCode: 1 628 | m_VersionName: 629 | facebookSdkVersion: 7.9.4 630 | facebookAppId: 631 | facebookCookies: 1 632 | facebookLogging: 1 633 | facebookStatus: 1 634 | facebookXfbml: 0 635 | facebookFrictionlessRequests: 1 636 | apiCompatibilityLevel: 6 637 | cloudProjectId: dbdeb547-cef3-4343-b748-199d8bfa24f4 638 | framebufferDepthMemorylessMode: 0 639 | projectName: New Unity Project (1) 640 | organizationId: shlifedev 641 | cloudEnabled: 0 642 | enableNativePlatformBackendsForNewInputSystem: 0 643 | disableOldInputManagerSupport: 0 644 | legacyClampBlendShapeWeights: 0 645 | --------------------------------------------------------------------------------