private static void SettingAssetPage() { GUILayout.Label("Creating a Settings Asset", Styles.title); GUILayout.Space(12); GUILayout.Label(@"GameplayIngredients는 다양한 기능을 제공하는 프레임 워크입니다. 이 에셋은 Resources 폴더에 저장해야합니다. 필수 사항은 아니지만 프로젝트 요구에 맞게 수정할 수 있도록 생성하는 것이 좋습니다. ", Styles.body); GUILayout.Space(16); using (new GUILayout.HorizontalScope()) { GUILayout.FlexibleSpace(); if (GUILayout.Button("GameplayIngredientsSettings 에셋 생성")) { bool create = true; if (System.IO.File.Exists(Application.dataPath + "/../" + kSettingsAssetPath)) { if (!EditorUtility.DisplayDialog("GameplayIngredientsSettings Asset Overwrite", "A GameplayIngredientsSettings Asset already exists, do you want to overwrite it?", "Yes", "No")) { create = false; } } if (create) { if (!System.IO.Directory.Exists(Application.dataPath + "/Resources")) { AssetDatabase.CreateFolder("Assets", "Resources"); } GameplayIngredientsSettings asset = Instantiate(GameplayIngredientsSettings.defaultSettings); AssetDatabase.CreateAsset(asset, kSettingsAssetPath); Selection.activeObject = asset; } } } }