Exemplo n.º 1
0
        protected void ShowPathList()
        {
            GUILayout.Label("资源配置路径:");
            foreach (var infos in ResourceConfig.GetInstance().resPathList)
            {
                infos.key     = EditorGUILayout.TextField("资源名(Key)", infos.key);
                infos.srcPath = GUILayoutEx.ShowPathBar("源资源路径", infos.srcPath);

                if (GUILayout.Button("移除"))
                {
                    ResourceConfig.GetInstance().resPathList.Remove(infos);
                    return;
                }
                EditorGUILayout.Space();
            }
            if (GUILayout.Button("...."))
            {
                ResourcePathConfigInfos info = new ResourcePathConfigInfos();
                var pathList = ResourceConfig.GetInstance().resPathList;
                pathList.Add(info);
            }
        }
Exemplo n.º 2
0
 protected void ShowModulePath()
 {
     ResourceConfig.GetInstance().resModulePath = GUILayoutEx.ShowPathBar("工具模块路径", ResourceConfig.GetInstance().resModulePath);
 }
Exemplo n.º 3
0
 protected override void OnInit()
 {
     AddObject(ResourceConfig.GetInstance());
 }