{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties/",
  "atlas": "https://www.pystone.net/?node=uwa-answer-set-shader-graph-generated-properties#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties.md",
  "context": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:uwa-answer-set-shader-graph-generated-properties",
  "slug": "uwa-answer-set-shader-graph-generated-properties",
  "title": "Shader Graph做的Shader，属性值都是随机的比如_basecolor这种，怎么赋值呢",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "石心.Yong"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "Shader Graph做的Shader，属性值都是随机的比如 basecolor这种，怎么赋值呢",
  "contentRole": "source",
  "sourceType": "source",
  "sourceMetadata": {
    "author": "石心.Yong"
  },
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "external_source",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "79b23e5dfd4f4b1c38a64640b2c4b9e360fba58832eaf125127dbc7d689f3f30",
  "assets": [
    {
      "reference": "assets/6059ca16cfa35d5b53669be3/01.png",
      "url": "/media/dfc233d1d17360643d2d.png",
      "mediaType": "image/png",
      "contentHash": "dfc233d1d17360643d2d832468dac88954936bfb0037fe1f34be58e1a28e2f68",
      "byteLength": 8264,
      "width": 389,
      "height": 99
    },
    {
      "reference": "assets/6059ca16cfa35d5b53669be3/02.png",
      "url": "/media/904f6fa002390bb74af9.png",
      "mediaType": "image/png",
      "contentHash": "904f6fa002390bb74af9d43a82a6cc455400497c7719922dab78d758907a5d60",
      "byteLength": 30992,
      "width": 554,
      "height": 408
    },
    {
      "reference": "assets/6059ca16cfa35d5b53669be3/03.png",
      "url": "/media/1df5891ba2980ff03f5d.png",
      "mediaType": "image/png",
      "contentHash": "1df5891ba2980ff03f5dbb03386a7c37f954ab8585b592d30c92d096a21df2f8",
      "byteLength": 15558,
      "width": 441,
      "height": 193
    },
    {
      "reference": "assets/6059ca16cfa35d5b53669be3/04.png",
      "url": "/media/5b6e49615ef11742ae68.png",
      "mediaType": "image/png",
      "contentHash": "5b6e49615ef11742ae6840f519f7261ba2b02ed581682d13c792b8c5cd4b6348",
      "byteLength": 11193,
      "width": 428,
      "height": 157
    }
  ],
  "headings": [
    {
      "depth": 1,
      "text": "Shader Graph做的Shader，属性值都是随机的比如basecolor这种，怎么赋值呢",
      "anchor": "shader-graph做的shader属性值都是随机的比如basecolor这种怎么赋值呢",
      "citation": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties/#shader-graph%E5%81%9A%E7%9A%84shader%E5%B1%9E%E6%80%A7%E5%80%BC%E9%83%BD%E6%98%AF%E9%9A%8F%E6%9C%BA%E7%9A%84%E6%AF%94%E5%A6%82basecolor%E8%BF%99%E7%A7%8D%E6%80%8E%E4%B9%88%E8%B5%8B%E5%80%BC%E5%91%A2"
    },
    {
      "depth": 2,
      "text": "问题",
      "anchor": "问题",
      "citation": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties/#%E9%97%AE%E9%A2%98"
    },
    {
      "depth": 2,
      "text": "我的回答",
      "anchor": "我的回答",
      "citation": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties/#%E6%88%91%E7%9A%84%E5%9B%9E%E7%AD%94"
    },
    {
      "depth": 2,
      "text": "来源与关系",
      "anchor": "来源与关系",
      "citation": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties/#%E6%9D%A5%E6%BA%90%E4%B8%8E%E5%85%B3%E7%B3%BB"
    }
  ],
  "claims": [],
  "outgoing": [
    {
      "id": "note:my-uwa-answers",
      "title": "我的 UWA 问答",
      "url": "https://www.pystone.net/notes/my-uwa-answers/",
      "atlas": "https://www.pystone.net/?node=my-uwa-answers#knowledge-atlas",
      "label": "我的 UWA 问答",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "上位集合：我的 UWA 问答",
      "citation": "https://www.pystone.net/notes/uwa-answer-set-shader-graph-generated-properties/#%E6%9D%A5%E6%BA%90%E4%B8%8E%E5%85%B3%E7%B3%BB"
    }
  ],
  "incoming": [
    {
      "id": "note:my-uwa-answers",
      "title": "我的 UWA 问答",
      "url": "https://www.pystone.net/notes/my-uwa-answers/",
      "atlas": "https://www.pystone.net/?node=my-uwa-answers#knowledge-atlas",
      "label": "我的 UWA 问答",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "2021-03-24：Shader Graph做的Shader，属性值都是随机的比如basecolor这种，怎么赋值呢（Shader）",
      "citation": "https://www.pystone.net/notes/my-uwa-answers/#2021"
    },
    {
      "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": "2021-03-24 - Shader Graph做的Shader，属性值都是随机的比如basecolor这种，怎么赋值呢",
      "citation": "https://www.pystone.net/notes/game-graphics-and-runtime/#%E6%88%91%E7%9A%84uwa%E9%97%AE%E7%AD%94"
    }
  ],
  "contentMarkdown": "# Shader Graph做的Shader，属性值都是随机的比如_basecolor这种，怎么赋值呢\n\n> [!note] 我的 UWA 问答\n> 本文收录我在 UWA 问答发表的公开回答。问题内容归原提问者；回答保留当时语境，技术结论可能受 Unity 版本、平台和项目条件限制。\n\n## 问题\n\nShader Graph做的Shader，属性值都是随机的比如_basecolor这种，怎么赋值呢？\n\n- 提问者：芝麻青豆角\n- 提问时间：2021-03-24 02:59:34\n\n## 我的回答\n\n选中Property，在GraphInspector中勾选Exposed，就可以暴露在Material的Inspector面板：\n\n![image.png](assets/6059ca16cfa35d5b53669be3/01.png)\n\n![image.png](assets/6059ca16cfa35d5b53669be3/02.png)\n\n![image.png](assets/6059ca16cfa35d5b53669be3/03.png)\n\n或者使用Inline Node，可以在ShaderGraph中直接赋值：\n\n![image.png](assets/6059ca16cfa35d5b53669be3/04.png)\n\n- 回答时间：2021-03-24 03:57:45\n- 最后更新：2021-03-24 03:59:22\n- 采纳状态：未采纳\n\n## 来源与关系\n\n- 上位集合：[[10-计算机、信息技术与工程/05-游戏图形与运行时/我的UWA问答/我的UWA问答|我的 UWA 问答]]\n- UWA 标签：Shader\n- 原始问题：[Shader Graph做的Shader，属性值都是随机的比如_basecolor这种，怎么赋值呢](https://answer.uwa4d.com/question/6059ca16cfa35d5b53669be3)\n- 源页最后更新：2021-03-24 03:57:44\n"
}
