Exemplo n.º 1
0
        protected override void InitUI(UIWidget layout)
        {
            string express = string.Format("*{0}*.png", _searchExpress);

            EditorTextField textField = new EditorTextField();

            textField.Text           = _searchExpress;
            textField.TriggerHandler = (Widget w) =>
            {
                _searchExpress = textField.Text;
            };
            layout.Add(textField);

            string[] allpath = EditorAssets.GetFilePaths(EditorAssets.Root, express);
            layout.Add(CreateImagePreviewWidget(allpath));
        }
Exemplo n.º 2
0
 private void SetBuildPath(ref AssetBundleBuild build, string output, string path, string filename, BuildTarget target)
 {
     string[] files = EditorAssets.GetFilePaths(path, "*");
     build.assetBundleName = filename + ".unity3d";
     build.assetNames      = files;
 }