{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/unity-path-retrieval/",
  "atlas": "https://www.pystone.net/?node=unity-path-retrieval#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/unity-path-retrieval.md",
  "context": "https://www.pystone.net/notes/unity-path-retrieval.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:unity-path-retrieval",
  "slug": "unity-path-retrieval",
  "title": "Unity中的路径获取",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "Unity中的路径获取",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "deba40c9c4d57f5a15d7815a4e706f55d87d3411bd75aecc35d7a55bff53d9c0",
  "assets": [],
  "headings": [
    {
      "depth": 1,
      "text": "Unity中的路径获取",
      "anchor": "unity中的路径获取",
      "citation": "https://www.pystone.net/notes/unity-path-retrieval/#unity%E4%B8%AD%E7%9A%84%E8%B7%AF%E5%BE%84%E8%8E%B7%E5%8F%96"
    },
    {
      "depth": 2,
      "text": "AssetDatabase",
      "anchor": "assetdatabase",
      "citation": "https://www.pystone.net/notes/unity-path-retrieval/#assetdatabase"
    },
    {
      "depth": 3,
      "text": "获取选中资源",
      "anchor": "获取选中资源",
      "citation": "https://www.pystone.net/notes/unity-path-retrieval/#%E8%8E%B7%E5%8F%96%E9%80%89%E4%B8%AD%E8%B5%84%E6%BA%90"
    },
    {
      "depth": 3,
      "text": "Active/Deactive选中物体",
      "anchor": "activedeactive选中物体",
      "citation": "https://www.pystone.net/notes/unity-path-retrieval/#activedeactive%E9%80%89%E4%B8%AD%E7%89%A9%E4%BD%93"
    },
    {
      "depth": 3,
      "text": "遍历所有文件",
      "anchor": "遍历所有文件",
      "citation": "https://www.pystone.net/notes/unity-path-retrieval/#%E9%81%8D%E5%8E%86%E6%89%80%E6%9C%89%E6%96%87%E4%BB%B6"
    },
    {
      "depth": 2,
      "text": "Application",
      "anchor": "application",
      "citation": "https://www.pystone.net/notes/unity-path-retrieval/#application"
    },
    {
      "depth": 3,
      "text": "遍历所有文件夹 (待学习)",
      "anchor": "遍历所有文件夹-待学习",
      "citation": "https://www.pystone.net/notes/unity-path-retrieval/#%E9%81%8D%E5%8E%86%E6%89%80%E6%9C%89%E6%96%87%E4%BB%B6%E5%A4%B9-%E5%BE%85%E5%AD%A6%E4%B9%A0"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:game-graphics-and-runtime",
      "title": "游戏图形与运行时",
      "url": "https://www.pystone.net/notes/game-graphics-and-runtime/",
      "atlas": "https://www.pystone.net/?node=game-graphics-and-runtime#knowledge-atlas",
      "label": "游戏图形与运行时",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "Unity中的“Unity中的路径获取”导航项",
      "citation": "https://www.pystone.net/notes/game-graphics-and-runtime/#unity"
    }
  ],
  "contentMarkdown": "# Unity中的路径获取\n\n> 创建时间：2020/5/18 11:16\n\n## AssetDatabase\n\n### 获取选中资源\n\n```csharp\nclass Program\n{\n    static void Main(string[] args)\n    {\n        dynamic dyn = 1;\n        object obj = 1;\n        dyn = dyn + 3;\n        //obj = obj + 3; 报错\n\n        // Rest the mouse pointer over dyn and obj to see their\n        // types at compile time.\n        System.Console.WriteLine(dyn.GetType());\n        System.Console.WriteLine(obj.GetType());\n    }\n}\n\n```\n\n### Active/Deactive选中物体\n\n```csharp\nclass Program\n{\n    static void Main(string[] args)\n    {\n        dynamic dyn = 1;\n        object obj = 1;\n        dyn = dyn + 3;\n        //obj = obj + 3; 报错\n\n        // Rest the mouse pointer over dyn and obj to see their\n        // types at compile time.\n        System.Console.WriteLine(dyn.GetType());\n        System.Console.WriteLine(obj.GetType());\n    }\n}\n\n```\n\n### 遍历所有文件\n\n```csharp\nclass Program\n{\n    static void Main(string[] args)\n    {\n        dynamic dyn = 1;\n        object obj = 1;\n        dyn = dyn + 3;\n        //obj = obj + 3; 报错\n\n        // Rest the mouse pointer over dyn and obj to see their\n        // types at compile time.\n        System.Console.WriteLine(dyn.GetType());\n        System.Console.WriteLine(obj.GetType());\n    }\n}\n\n```\n\n## Application\n\n获取路径：”………………../Assets”\n\n```csharp\nclass Program\n{\n    static void Main(string[] args)\n    {\n        dynamic dyn = 1;\n        object obj = 1;\n        dyn = dyn + 3;\n        //obj = obj + 3; 报错\n\n        // Rest the mouse pointer over dyn and obj to see their\n        // types at compile time.\n        System.Console.WriteLine(dyn.GetType());\n        System.Console.WriteLine(obj.GetType());\n    }\n}\n\n```\n\n### 遍历所有文件夹 (待学习)\n\n```csharp\nclass Program\n{\n    static void Main(string[] args)\n    {\n        dynamic dyn = 1;\n        object obj = 1;\n        dyn = dyn + 3;\n        //obj = obj + 3; 报错\n\n        // Rest the mouse pointer over dyn and obj to see their\n        // types at compile time.\n        System.Console.WriteLine(dyn.GetType());\n        System.Console.WriteLine(obj.GetType());\n    }\n}\n\n```\n"
}
