<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tofgame</author_name>
  <author_url>https://blog.hatena.ne.jp/tofgame/</author_url>
  <blog_title>トーフメモ</blog_title>
  <blog_url>https://tofgame.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>Unity-その他</anon>
  </categories>
  <description>ちょっとしたメモ CubeやSphereのマテリアルの色はスクリプトから変更できます。 Block.cs using UnityEngine; public class Block : MonoBehaviour { private Material material; private void Init () { material = GetComponent&lt;Renderer&gt;().material; } private void Awake () { Init(); } private void Start () { //どっちも同じ material.SetColor(&quot;_Color&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftofgame.hatenablog.com%2Fentry%2F2019%2F04%2F19%2F021435&quot; title=&quot;【Unity】マテリアルの色をスクリプトから変更する - トーフメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/154301214/1556293606142571</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-19 02:14:35</published>
  <title>【Unity】マテリアルの色をスクリプトから変更する</title>
  <type>rich</type>
  <url>https://tofgame.hatenablog.com/entry/2019/04/19/021435</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
