<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>USAGI-WRP</author_name>
  <author_url>https://blog.hatena.ne.jp/USAGI-WRP/</author_url>
  <blog_title>C++ ときどき ごはん、わりとてぃーぶれいく☆</blog_title>
  <blog_url>https://usagi.hatenablog.jp/</blog_url>
  <categories>
    <anon>UMeshComponent</anon>
    <anon>runtime</anon>
    <anon>C++</anon>
    <anon>tips</anon>
    <anon>UE4</anon>
  </categories>
  <description>特に UProceduralMeshComponent を使う場合など UMeshComponent 系のメッシュ mesh のマテリアルを実行時に変更したい場合は以下のようにする。 mesh-&gt;SetMaterial ( 0 // Note: マテリアルをセットしたいメッシュ内のセクション番号 , Cast&lt;UMaterial&gt; // Note: 今回はスターターコンテントの草原っぽいマテリアルをロードして与えている ( StaticLoadObject ( UMaterial::StaticClass() , nullptr , TEXT( &quot;/Game/StarterContent/Ma…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2017%2F06%2F02%2F082941&quot; title=&quot;UProceduralMeshComponent などの UMeshComponent のマテリアルを実行時にC++で変更する方法 - C++ ときどき ごはん、わりとてぃーぶれいく☆&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-02 08:29:41</published>
  <title>UProceduralMeshComponent などの UMeshComponent のマテリアルを実行時にC++で変更する方法</title>
  <type>rich</type>
  <url>https://usagi.hatenablog.jp/entry/2017/06/02/082941</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
