<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ayousanz</author_name>
  <author_url>https://blog.hatena.ne.jp/ayousanz/</author_url>
  <blog_title>yousanのメモ</blog_title>
  <blog_url>https://ayousanz.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>初めに 開発環境 実装 スクリプトからshaderのテクスチャーのプロパティについて MaterialPropertyBlockを使ってマテリアルのプロパティの取得・更新 備考 初めに テクスチャの位置を変更した実装を行う際に スクリプトから任意のタイミングで materialのoffsetを変更したい場合があります。その際の実装でURPのlit shaderの場合に少し手こずったので記録しておきます。 実際にmaterialのoffsetを変更して キャラクターの目のテクスチャーの位置の変更にして 瞬きの実装は動画のようになります 開発環境 Unity 2022.3.42f1 URP 14.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayousanz.hatenadiary.jp%2Fentry%2F2024%2F11%2F11%2F210259&quot; title=&quot;UnityでURPのLit shaderのモデルのmaterialのOffsetをスクリプトから変更する - yousanのメモ&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-ak.f.st-hatena.com/images/fotolife/a/ayousanz/20241111/20241111202735.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-11 21:02:59</published>
  <title>UnityでURPのLit shaderのモデルのmaterialのOffsetをスクリプトから変更する</title>
  <type>rich</type>
  <url>https://ayousanz.hatenadiary.jp/entry/2024/11/11/210259</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
