Ejemplo n.º 1
0
        public void OnGUI()
        {
            EditorGUILayout.BeginVertical();

            EditorGUILayout.BeginHorizontal();
            {
                EditorGUILayout.LabelField("Pathname:", GUILayout.Width(70));
                pathname = EditorGUILayout.TextField(pathname);
            }
            EditorGUILayout.EndHorizontal();

            makeIntoOneBundleName = GUILayout.Toggle(makeIntoOneBundleName, "Make into one BundleName");
            if (makeIntoOneBundleName)
            {
                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField("Bundle Name:", GUILayout.Width(90));
                    bundleName = EditorGUILayout.TextField(bundleName);
                }
                EditorGUILayout.EndHorizontal();
            }

            if (GUILayout.Button("OK"))
            {
                SetAssetBundleNames.SetNamesFile();

                _instance.Close();
                _instance = null;
            }

            EditorGUILayout.EndVertical();
        }
Ejemplo n.º 2
0
 public static void OpenWindow()
 {
     _instance         = GetWindow <InputAssetBundlePathnameWindow>("AssetBundlePath");
     _instance.minSize = new Vector2(300.0f, 40.0f);
     _instance.Show();
 }