<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unity アーカイブ - Sheltie&#039;s Garage</title>
	<atom:link href="https://sheltie-garage.xyz/category/%E6%8A%80%E8%A1%93%E7%B3%BB/unity/feed/" rel="self" type="application/rss+xml" />
	<link>https://sheltie-garage.xyz/category/技術系/unity/</link>
	<description>趣味に生きる</description>
	<lastBuildDate>Sun, 13 Feb 2022 11:14:38 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://sheltie-garage.xyz/wp-content/uploads/2018/04/cropped-L927xrpq-32x32.jpg</url>
	<title>Unity アーカイブ - Sheltie&#039;s Garage</title>
	<link>https://sheltie-garage.xyz/category/技術系/unity/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Unity Editorのインスペクタで音声が正しく再生されなくなった時の対処法</title>
		<link>https://sheltie-garage.xyz/2022/02/unity-editor%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%9a%e3%82%af%e3%82%bf%e3%81%a7%e9%9f%b3%e5%a3%b0%e3%81%8c%e6%ad%a3%e3%81%97%e3%81%8f%e5%86%8d%e7%94%9f%e3%81%95%e3%82%8c%e3%81%aa%e3%81%8f/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 13 Feb 2022 11:14:37 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3140</guid>

					<description><![CDATA[<p>Unityで開発中、なぜか音声のプレビュー(再生)がうまくできなくなってしまったため、解決法のメモうまく再生できないというのは、自分の環境の場合、音声がスローに再生されてしまい、音程が狂ったりノイズが乗った状態で再生され [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/02/unity-editor%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%9a%e3%82%af%e3%82%bf%e3%81%a7%e9%9f%b3%e5%a3%b0%e3%81%8c%e6%ad%a3%e3%81%97%e3%81%8f%e5%86%8d%e7%94%9f%e3%81%95%e3%82%8c%e3%81%aa%e3%81%8f/">Unity Editorのインスペクタで音声が正しく再生されなくなった時の対処法</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Unityで開発中、なぜか音声のプレビュー(再生)がうまくできなくなってしまったため、解決法のメモ<br>うまく再生できないというのは、自分の環境の場合、音声がスローに再生されてしまい、音程が狂ったりノイズが乗った状態で再生されるようになってしまいました</p>



<h2 class="wp-block-heading" id="インスペクタでの再生">インスペクタでの再生</h2>



<p>Unity Editor上で音声を選択し、インスペクタから再生することができます</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="467" height="478" src="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213.png" alt="" class="wp-image-3141" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213.png 467w, https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213-293x300.png 293w" sizes="(max-width: 467px) 100vw, 467px" /></figure>



<p>今回のケースではインスペクタ上で再生ボタンを実行すると、音声がスローになってしまい正しく再生できなくなってしまいました</p>



<h2 class="wp-block-heading" id="同様のケースで質問が行われており-解決方法が見つかる">同様のケースで質問が行われており、解決方法が見つかる</h2>



<p>以下のフォーラムで同じ状態になっている方がいました</p>



<p><a href="https://forum.unity.com/threads/audio-slow-down-and-crackling.719720/">https://forum.unity.com/threads/audio-slow-down-and-crackling.719720/</a></p>



<p>こちらのフォーラムを確認すると、「Project Setting > Audio > DSP Buffer Size」を「Best latency」以外に設定することで解決するとのこと</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1025" height="351" src="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2.png" alt="" class="wp-image-3142" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2.png 1025w, https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2-300x103.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/02/20220213_2-768x263.png 768w" sizes="(max-width: 1025px) 100vw, 1025px" /></figure>



<p>自分の場合、Good latencyに設定することで、音声が正常に再生されるようになりました!</p>



<h2 class="wp-block-heading" id="以上">以上</h2>



<p>今回はUnity開発時に発生したトラブルの紹介でした。<br>発生原因はいまいち不明ですが、ひとまず解決できてよかった。<br>ビルド後のゲームに影響が出ないことを祈るばかりです</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/02/unity-editor%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%9a%e3%82%af%e3%82%bf%e3%81%a7%e9%9f%b3%e5%a3%b0%e3%81%8c%e6%ad%a3%e3%81%97%e3%81%8f%e5%86%8d%e7%94%9f%e3%81%95%e3%82%8c%e3%81%aa%e3%81%8f/">Unity Editorのインスペクタで音声が正しく再生されなくなった時の対処法</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Unityでコード補完が効かなくなったときに確認すること</title>
		<link>https://sheltie-garage.xyz/2022/01/unity-visualstudio/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Mon, 24 Jan 2022 13:53:19 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3116</guid>

					<description><![CDATA[<p>個人的なメモスクリプトを組んでいて、なぜかコード補完が効かなくなってしまいました。.(ドット)を入力しても、関連するプロパティやメソッドが表示されなくて恐ろしく不便！治せるのか調べてみたら、以下の記事で解決できました U [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-visualstudio/">Unityでコード補完が効かなくなったときに確認すること</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>個人的なメモ<br>スクリプトを組んでいて、なぜかコード補完が効かなくなってしまいました。<br>.(ドット)を入力しても、関連するプロパティやメソッドが表示されなくて恐ろしく不便！<br>治せるのか調べてみたら、以下の記事で解決できました</p>



<figure class="wp-block-embed is-type-wp-embed is-provider-アプリ関連ニュース wp-block-embed-アプリ関連ニュース"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="SmPJVaSrOJ"><a href="https://www.gigas-jp.com/appnews/archives/9448">[Unity] Visual Studioの入力補完が機能しない場合の対処方法</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;[Unity] Visual Studioの入力補完が機能しない場合の対処方法&#8221; &#8212; アプリ関連ニュース" src="https://www.gigas-jp.com/appnews/archives/9448/embed#?secret=SmPJVaSrOJ" data-secret="SmPJVaSrOJ" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<h2 class="wp-block-heading">Unity Editorの設定確認</h2>



<p>メニューから「Edit -&gt; Preferences」の順に選択し、設定ダイアログから「External Tools」を選択</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="386" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-1024x386.png" alt="" class="wp-image-3109" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-1024x386.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-300x113.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1-768x290.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1.png 1146w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>赤枠の部分をVisual Studio Community 2019 に変更</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="435" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-1024x435.png" alt="" class="wp-image-3122" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-1024x435.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-300x127.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1-768x326.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1.png 1147w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">以上！</h2>



<p>確認が必要な設定は、これだけ！<br>この設定で無事にコード補完が復活しました!</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="820" height="407" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2.png" alt="" class="wp-image-3127" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2.png 820w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2-300x149.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-2-768x381.png 768w" sizes="auto, (max-width: 820px) 100vw, 820px" /></figure>



<p>このあたりの設定はいじった覚えがないのだけど・・・<br>もしコード補完が効かないな？と思ったら、この設定を見直してみてください。</p>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-visualstudio/">Unityでコード補完が効かなくなったときに確認すること</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Unity VR PCディスプレイに第三者カメラを表示</title>
		<link>https://sheltie-garage.xyz/2022/01/unity-vr-pc%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%ab%e7%ac%ac%e4%b8%89%e8%80%85%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e8%a1%a8%e7%a4%ba/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Tue, 04 Jan 2022 08:17:02 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[VR]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3094</guid>

					<description><![CDATA[<p>Unity VR開発で、PCディスプレイにはHMDではなく、別カメラの映像を表示したいということがよくあります。以下の方法でPCディスプレイには別カメラ映像を表示することが可能です。 プロジェクトセットアップ 今回の環境 [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-vr-pc%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%ab%e7%ac%ac%e4%b8%89%e8%80%85%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e8%a1%a8%e7%a4%ba/">Unity VR PCディスプレイに第三者カメラを表示</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Unity VR開発で、PCディスプレイにはHMDではなく、別カメラの映像を表示したいということがよくあります。<br>以下の方法でPCディスプレイには別カメラ映像を表示することが可能です。</p>



<h2 class="wp-block-heading">プロジェクトセットアップ</h2>



<p>今回の環境は以下の通りです</p>



<ul class="wp-block-list"><li>Windows11</li><li>HTC Vive</li><li>Unity 2020.3.25f</li><li>SteamVR 2.7.3</li></ul>



<p>まずはプロジェクトを作成してSteamVRプラグインを取り込みます</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2.png"><img loading="lazy" decoding="async" width="1024" height="550" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1024x550.png" alt="" class="wp-image-3095" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1024x550.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-300x161.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-768x413.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2-1536x826.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-2.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>SteamVR PluginからCamera Rigを設定します</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1024x547.png" alt="" class="wp-image-3096" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1024x547.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-300x160.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-768x410.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3-1536x820.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-3.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>動きが分かりやすいように、CameraRig配下のleft、right、cameraに適当なオブジェクトを設定しておきます</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-1024x547.png" alt="" class="wp-image-3097" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-1024x547.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-300x160.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-768x410.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4-1536x820.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-4.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>最初から配置されているMain Cameraを変更していきます。<br>好きな位置に移動したのち、以下のプロパティを変更します</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="461" height="596" src="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-5.png" alt="" class="wp-image-3098" srcset="https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-5.png 461w, https://sheltie-garage.xyz/wp-content/uploads/2022/01/Image-5-232x300.png 232w" sizes="auto, (max-width: 461px) 100vw, 461px" /></figure>



<p>Depthのプロパティを1、具体的にはHMD側のCameraのDepthプロパティより大きい値を指定することでPCディスプレイ側にはMain Camera側(Depthが大きいほう)が優先されて表示されます。<br>もちろん、HMDにはHMD側のカメラの映像が表示されます。<br>Target EyeはNoneを指定します。</p>



<h2 class="wp-block-heading">以上</h2>



<p>ひとまずPCディスプレイにHMD以外のカメラ映像を表示する場合、上記の設定だけで実現することができます。<br>アバターなどを利用するゲームの場合、プレイヤーにはHMDの映像を、PCディスプレイには他カメラの映像を映すことでVRゲームを遊ぶ人、遊んでいる人を見てる人、両方とも楽しめるゲームが作れるかもしれませんね</p>



<a href="https://www.amazon.co.jp/Oculus-899-00183-02-Quest-2%E2%80%94%E5%AE%8C%E5%85%A8%E3%83%AF%E3%82%A4%E3%83%A4%E3%83%AC%E3%82%B9%E3%81%AE%E3%82%AA%E3%83%BC%E3%83%AB%E3%82%A4%E3%83%B3%E3%83%AF%E3%83%B3VR%E3%83%98%E3%83%83%E3%83%89%E3%82%BB%E3%83%83%E3%83%88%E2%80%94128GB/dp/B09B9F7439?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;crid=38ZWRKFCEI1RZ&#038;keywords=VR&#038;qid=1641284031&#038;sprefix=vr%2Caps%2C176&#038;sr=8-7&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=84a1b93fc4120eb10c80286fa343d241&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B09B9F7439&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B09B9F7439" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="https://www.amazon.co.jp/Oculus-899-00183-02-Quest-2%E2%80%94%E5%AE%8C%E5%85%A8%E3%83%AF%E3%82%A4%E3%83%A4%E3%83%AC%E3%82%B9%E3%81%AE%E3%82%AA%E3%83%BC%E3%83%AB%E3%82%A4%E3%83%B3%E3%83%AF%E3%83%B3VR%E3%83%98%E3%83%83%E3%83%89%E3%82%BB%E3%83%83%E3%83%88%E2%80%94128GB/dp/B09B9F7439?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;crid=38ZWRKFCEI1RZ&#038;keywords=VR&#038;qid=1641284031&#038;sprefix=vr%2Caps%2C176&#038;sr=8-7&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=84a1b93fc4120eb10c80286fa343d241&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B09B9F7439&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B09B9F7439" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<a href="https://www.amazon.co.jp/HTC-VIVE-Pro-Eye-%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E3%82%AD%E3%83%83%E3%83%88/dp/B07RPPDJSN?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&#038;crid=38ZWRKFCEI1RZ&#038;keywords=VR&#038;qid=1641284031&#038;sprefix=vr%2Caps%2C176&#038;sr=8-50&#038;linkCode=li2&#038;tag=monodon-22&#038;linkId=da7097921b222c204d06f948c136cdb0&#038;language=ja_JP&#038;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" border="0" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&#038;ASIN=B07RPPDJSN&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=monodon-22&#038;language=ja_JP" ></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&#038;language=ja_JP&#038;l=li2&#038;o=9&#038;a=B07RPPDJSN" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />



<p></p>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2022/01/unity-vr-pc%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%ab%e7%ac%ac%e4%b8%89%e8%80%85%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e8%a1%a8%e7%a4%ba/">Unity VR PCディスプレイに第三者カメラを表示</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MixamoのモーションをUnityに適用する</title>
		<link>https://sheltie-garage.xyz/2021/12/mixamo%e3%81%ae%e3%83%a2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92unity%e3%81%ab%e9%81%a9%e7%94%a8%e3%81%99%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 26 Dec 2021 12:58:49 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=3081</guid>

					<description><![CDATA[<p>Adobeが提供しているモーション配布サイト「Mixamo」のモーションをUnityに適用します。(適用方法をよく忘れてしまうため、個人的なメモです) Mixamoからモーションをダウンロード まずは「Mixamo」にア [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/12/mixamo%e3%81%ae%e3%83%a2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92unity%e3%81%ab%e9%81%a9%e7%94%a8%e3%81%99%e3%82%8b/">MixamoのモーションをUnityに適用する</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Adobeが提供しているモーション配布サイト「Mixamo」のモーションをUnityに適用します。<br>(適用方法をよく忘れてしまうため、個人的なメモです)</p>



<h2 class="wp-block-heading">Mixamoからモーションをダウンロード</h2>



<p>まずは「Mixamo」にアクセスして利用したいモーションをダウンロードします。<br><a href="https://www.mixamo.com/" target="_blank" rel="noreferrer noopener">https://www.mixamo.com/</a></p>



<p>利用したいモーションを見つけたら、画面右のDownloadをクリック</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="476" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-1024x476.png" alt="" class="wp-image-3082" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-1024x476.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-300x140.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-768x357.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1-1536x715.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-1-1.png 1917w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>ダウンロードのセッティングが出てきます。自分の場合、以下のような設定でダウンロードしています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="714" height="297" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-2-1.png" alt="" class="wp-image-3083" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-2-1.png 714w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-2-1-300x125.png 300w" sizes="auto, (max-width: 714px) 100vw, 714px" /></figure>



<h2 class="wp-block-heading">モデルを準備</h2>



<p>まずはアニメーションを適用するキャラクターを準備します。<br><a rel="noreferrer noopener" href="https://booth.pm/ja/browse/3D%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E3%83%BC" target="_blank">Booth</a>などでお気に入りのキャラクターを購入するのも良いですし、手っ取り早く試したければ<a rel="noreferrer noopener" href="https://unity-chan.com/" target="_blank">Unityちゃん</a>を利用するのも良いかと思います。<br>Misamoのアニメーションを適用する場合、キャラクターのRigが「<strong><span class="has-inline-color has-vivid-red-color">Humanoid</span></strong>」で設定されている必要があります。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="365" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-1024x365.png" alt="" class="wp-image-3084" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-1024x365.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-300x107.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-768x274.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4-1536x548.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-4.png 1556w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>今回はUnityちゃんを使用してみます</p>



<h2 class="wp-block-heading">MixamoのモーションをUnityに取り込む</h2>



<p>MixamoからダウンロードしたfbxファイルをUnityプロジェクトに追加し、fbxファイルのリグを「Humanoid」に変更します。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="567" height="282" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-5.png" alt="" class="wp-image-3085" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-5.png 567w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-5-300x149.png 300w" sizes="auto, (max-width: 567px) 100vw, 567px" /></figure>



<h2 class="wp-block-heading">Unityちゃんに適用してみる</h2>



<p>あとは、MixamoのアニメーションをUnityちゃんに適用すれば完成です。</p>



<p>ヒエラルキーにUnitychan(Assets &gt; UnityChan &gt; Models &gt; unitychan)モデルを配置します</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="582" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-1024x582.png" alt="" class="wp-image-3086" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-1024x582.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-300x170.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6-768x436.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-6.png 1167w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>新規でアニメーションコントローラを作成し、ステートを追加、アニメーションにMixamoのアニメーションを割り当てます。以上の操作を行うと、画面はこんな感じになります</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="607" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-1024x607.png" alt="" class="wp-image-3087" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-1024x607.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-300x178.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7-768x455.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-7.png 1120w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>あとはunitychanに設定されているAnimator Controllerに、先ほど作成したAnimatorを設定すれば完了</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="423" src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-1024x423.png" alt="" class="wp-image-3088" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-1024x423.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-300x124.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-768x317.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8-1536x634.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/12/Image-8.png 1594w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">以上！</h2>



<p>以上でMixamoのモーションをunity上で利用する方法は完了です。<br>再生ボタンを押せば、モーションが適用されたUnityちゃんが確認できると思います</p>



<figure class="wp-block-video"><video controls src="https://sheltie-garage.xyz/wp-content/uploads/2021/12/20211226_002.mp4"></video></figure>



<p>Mixamoには多くのアニメーションが用意されているので、うまく利用すればゲームの役に立てられそうですね!</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/12/mixamo%e3%81%ae%e3%83%a2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92unity%e3%81%ab%e9%81%a9%e7%94%a8%e3%81%99%e3%82%8b/">MixamoのモーションをUnityに適用する</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		<enclosure url="https://sheltie-garage.xyz/wp-content/uploads/2021/12/20211226_002.mp4" length="2638497" type="video/mp4" />

			</item>
		<item>
		<title>UnityでGooglePlay用ビルドを行う</title>
		<link>https://sheltie-garage.xyz/2021/09/unity%e3%81%a7googleplay%e7%94%a8%e3%83%93%e3%83%ab%e3%83%89%e3%82%92%e8%a1%8c%e3%81%86/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 26 Sep 2021 03:18:13 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2888</guid>

					<description><![CDATA[<p>前回作成した「」から約2カ月、ひとまず新しいゲームが出来たのでGooglePlayに公開しようとしたらいろいろ変わっていたのでメモ この記事で伝えたいこと 2021年8月からGoogle Playに公開するアプリの条件が [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/unity%e3%81%a7googleplay%e7%94%a8%e3%83%93%e3%83%ab%e3%83%89%e3%82%92%e8%a1%8c%e3%81%86/">UnityでGooglePlay用ビルドを行う</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>前回作成した「」から約2カ月、ひとまず新しいゲームが出来たのでGooglePlayに公開しようとしたらいろいろ変わっていたのでメモ</p>



<h2 class="wp-block-heading">この記事で伝えたいこと</h2>



<ul class="wp-block-list"><li>2021年8月からGoogle Playに公開するアプリの条件がいろいろ変更になった</li><li>KeyStoreをアップデートする必要があった(過去に作成したKeyStoreが使えなくなっていた)</li><li>APIレベルを30以上にする必要があった</li></ul>



<h2 class="wp-block-heading">アップするファイル形式がapk → aab に代わっていた</h2>



<p>今まで通りapk形式でビルドを行いアップロードしたら形式が違うと怒られました。アップするファイルの形式がapk → aabになったようで、aab形式でないとアップロードできなくなっていました。といってもUnity側で対応しているので、こちらはそこまで大きな問題ではありません。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="629" height="599" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-2.png" alt="" class="wp-image-2891" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-2.png 629w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-2-300x286.png 300w" sizes="auto, (max-width: 629px) 100vw, 629px" /></figure>



<p>Build Setting に「Build App bundle(Google Play)」のチェックがあるので、項目にチェックを入れてビルドすればOKです。</p>



<h2 class="wp-block-heading">証明書の安全性が低い問題</h2>



<p>無事にaab形式でビルドが出来たのでアップロードしてみたら、今度は証明書の安全性が低いと言われてしまいましたので、こちらも対応します。</p>



<p><a href="https://support.google.com/googleplay/android-developer/answer/9842756?hl=ja">https://support.google.com/googleplay/android-developer/answer/9842756?hl=ja</a></p>



<p>公式ページによると、2021年8月を境に方法が変わったようで、前回のアプリリリースが2021年7月でしたので、まさか2カ月の間に方法が変わってしまうとは・・・</p>



<p>ということで、新規でKeyStoreを作りなおしてみます。<br>UnityのPlayer SettingからKeyStoreの作成が可能です。<br>ちなみに、利用しているUnityバージョンは「2021.1.22f」となります</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="882" height="584" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3.png" alt="" class="wp-image-2892" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3.png 882w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3-300x199.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-3-768x509.png 768w" sizes="auto, (max-width: 882px) 100vw, 882px" /></figure>



<p>Key Store Managerから新規Keyを作成して必要事項を入力します。<br>入力後、「作成したKeyStoreを現在のプロジェクトに適用するか」のダイアログが出てくるので、Yesを選択して反映しました。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="390" height="157" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-4.png" alt="" class="wp-image-2893" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-4.png 390w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-4-300x121.png 300w" sizes="auto, (max-width: 390px) 100vw, 390px" /></figure>



<p>ビルド後、Google Playにアップロードします。</p>



<h2 class="wp-block-heading">今後はAPIレベルの問題ががが・・・</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="268" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-1024x268.png" alt="" class="wp-image-2894" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-1024x268.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-300x78.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5-768x201.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-5.png 1396w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>無事アップロードが終わったら、今度はAPIレベルが足りないとのこと・・・</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="971" height="675" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6.png" alt="" class="wp-image-2895" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6.png 971w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6-300x209.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-6-768x534.png 768w" sizes="auto, (max-width: 971px) 100vw, 971px" /></figure>



<p>2021年8月以降にアプリを公開する場合、満たすべき条件が結構変わったようですね・・・<br>APIレベル30以降を対象とすると、結構なAndroidが切り捨てられそうな予感・・・<br>自分がテストで使っているNexus6も切り擦れられるのではなかろうか(今現在 バージョンがAndroid7.1.1なので)</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="674" height="141" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-7.png" alt="" class="wp-image-2896" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-7.png 674w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-7-300x63.png 300w" sizes="auto, (max-width: 674px) 100vw, 674px" /></figure>



<p>とりあえず Pyayer Setting画面からAPIレベルを変更。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="379" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-1024x379.png" alt="" class="wp-image-2897" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-1024x379.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-300x111.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-768x284.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8-1536x569.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-8.png 1580w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>再ビルドを行ったものをアップしたら、正常に受け付けられました。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="324" src="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-1024x324.png" alt="" class="wp-image-2898" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-1024x324.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-300x95.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-768x243.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9-1536x486.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/09/Image-9.png 1590w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>無事アプリ審査になりました。</p>



<h2 class="wp-block-heading">以上</h2>



<p>2021年8月を境に、Google Playのアプリ公開方法が結構変更されたようですね・・・<br>新規アプリはもちろんですが、既存アプリのアップデートにも影響が出そうなので、過去アプリをアップデートする必要が出てきたときに注意して作業しないとダメそうです。</p>



<figure class="wp-block-embed is-type-rich is-provider-amazon wp-block-embed-amazon"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Unityゲーム プログラミング・バイブル 2nd Generation" type="text/html" width="856" height="550" frameborder="0" allowfullscreen style="max-width:100%" src="https://read.amazon.com.au/kp/card?preview=inline&#038;linkCode=kpd&#038;ref_=k4w_oembed_LYDCB0D9vWjuOW&#038;asin=B097GBR2N3&#038;tag=kpembed-20"></iframe>
</div></figure>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/09/unity%e3%81%a7googleplay%e7%94%a8%e3%83%93%e3%83%ab%e3%83%89%e3%82%92%e8%a1%8c%e3%81%86/">UnityでGooglePlay用ビルドを行う</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>UnityでAndroidのlogcatを使用する</title>
		<link>https://sheltie-garage.xyz/2021/06/unity%e3%81%a7android%e3%81%aelogcat%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sat, 12 Jun 2021 01:50:19 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2790</guid>

					<description><![CDATA[<p>androidで実機確認時に利用しているlogcatですが、今まではAndroid Studioをインストールして、コマンドラインからadbを起動して・・・みたいなことをしていました。気が付いたらUnity Editor [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/06/unity%e3%81%a7android%e3%81%aelogcat%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b/">UnityでAndroidのlogcatを使用する</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>androidで実機確認時に利用しているlogcatですが、今まではAndroid Studioをインストールして、コマンドラインからadbを起動して・・・みたいなことをしていました。<br>気が付いたらUnity Editorに内蔵されていたので、簡単に紹介いたします</p>



<h2 class="wp-block-heading">インストール</h2>



<p>公式でパッケージが用意されているので、パッケージマネージャーから追加します</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-1.png"><img loading="lazy" decoding="async" width="1024" height="390" src="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-1-1024x390.png" alt="" class="wp-image-2792" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-1-1024x390.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-1-300x114.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-1-768x293.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-1.png 1461w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>パッケージ追加後に以下のメニューからアクセスできるようになります</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-3.png"><img loading="lazy" decoding="async" width="892" height="577" src="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-3.png" alt="" class="wp-image-2793" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-3.png 892w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-3-300x194.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-3-768x497.png 768w" sizes="auto, (max-width: 892px) 100vw, 892px" /></a></figure>



<p>logcatの設定自体は以上です。<br>Android端末側で、USBデバッグを有効にする必要があるので、以下の<a rel="noreferrer noopener" href="https://sp7pc.com/google/android/39763" target="_blank">サイト</a>などを参考に設定します<br>ただ、USBデバッグの機能を有効にすると、<strong><span class="has-inline-color has-vivid-red-color">アプリによっては起動できなくなります</span></strong><br>自分の場合、銀行系などのセキュリティに厳しそうなアプリが、USBデバッグ有効後に起動できなくなりました。<br>普段利用時と開発時にUSBデバッグを切り替えるのも面倒なので、開発用に別途Android端末を準備するのが一番良いと思います</p>



<a href="https://www.amazon.co.jp/%E3%80%90%E9%80%B2%E5%8C%96%E7%89%88%E3%80%91UMIDIGI-%E3%82%B9%E3%83%9E%E3%83%BC%E3%83%88%E3%83%95%E3%82%A9%E3%83%B3%E6%9C%AC%E4%BD%93-Android-%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3-%E3%82%AA%E3%83%8B%E3%82%AD%E3%82%B9%E3%83%96%E3%83%A9%E3%83%83%E3%82%AF/dp/B08R3KK8L1?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=android&amp;qid=1623461824&amp;sr=8-5&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=038402434e4dccdb72537e0f567ec312&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B08R3KK8L1&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B08R3KK8L1" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/Ulefone-9P%E3%82%B9%E3%83%9E%E3%83%BC%E3%83%88%E3%83%95%E3%82%A9%E3%83%B3%E6%9C%AC%E4%BD%93-Android-FHD%E3%83%95%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3-%E6%8C%87%E7%B4%8B%E8%AA%8D%E8%A8%BC%EF%BC%86%E9%A1%94%E8%AA%8D%E8%A8%BC/dp/B091F46JY2?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=android&amp;qid=1623461824&amp;sr=8-6&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=5c7a7935b2c7b61b4e1ba849eaee9cc6&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B091F46JY2&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B091F46JY2" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/UMIDIGI-%E3%82%B9%E3%83%9E%E3%83%BC%E3%83%88%E3%83%95%E3%82%A9%E3%83%B3%E6%9C%AC%E4%BD%93-Android-%E3%83%95%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3-%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3/dp/B08ZCGSHYB?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=android&amp;qid=1623461824&amp;sr=8-7&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=45f1ffce59b40cf93639ff9dbded59d9&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B08ZCGSHYB&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B08ZCGSHYB" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">



<p>ほかのAndroid端末を<a href="https://amzn.to/3wuucHP" target="_blank" rel="noreferrer noopener">Amazonで見てみる</a></p>



<h2 class="wp-block-heading">使ってみる</h2>



<p>Android端末と接続し、Unity Logcatの表示が<strong><span class="has-inline-color has-vivid-green-cyan-color">Connected</span></strong>になれば、接続完了です。<br>後はログが大量に表示されるので、フィルター(虫眼鏡マークの場所)に絞り込みたい単語を入力して利用するのが良いかと思います</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-4-wpp1623462566637.png"><img loading="lazy" decoding="async" width="1024" height="533" src="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-4-wpp1623462566637-1024x533.png" alt="" class="wp-image-2794" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-4-wpp1623462566637-1024x533.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-4-wpp1623462566637-300x156.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-4-wpp1623462566637-768x400.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/06/Image-4-wpp1623462566637.png 1065w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<h2 class="wp-block-heading">以上</h2>



<p>気が付けばUnityないからLogcatが使えるようになっていたというお話でした。<br>今までは別途コンソールを立ち上げて確認していたので、Unity内で完結できるのはうれしい限りですね</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/06/unity%e3%81%a7android%e3%81%aelogcat%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b/">UnityでAndroidのlogcatを使用する</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>VRM アバター設定を行ってみる</title>
		<link>https://sheltie-garage.xyz/2021/03/vrm-%e3%82%a2%e3%83%90%e3%82%bf%e3%83%bc%e8%a8%ad%e5%ae%9a%e3%82%92%e8%a1%8c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Wed, 10 Mar 2021 10:01:35 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[VR]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2598</guid>

					<description><![CDATA[<p>boothで以前購入した「幽狐族のお姉様」ですが、諸事情により眠らせていました。BeatSaber購入を機にVRゲームプレイを動画に取りたいと思い、アバターとしてこちらのキャラクターを利用することにしました。 幽狐族のお [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/03/vrm-%e3%82%a2%e3%83%90%e3%82%bf%e3%83%bc%e8%a8%ad%e5%ae%9a%e3%82%92%e8%a1%8c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">VRM アバター設定を行ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>boothで以前購入した「<a href="https://armadillon.booth.pm/items/1484117" target="_blank" rel="noreferrer noopener">幽狐族のお姉様</a>」ですが、諸事情により眠らせていました。<br>BeatSaber購入を機にVRゲームプレイを動画に取りたいと思い、アバターとしてこちらのキャラクターを利用することにしました。</p>



<h2 class="wp-block-heading">幽狐族のお姉様はVRM未同梱！</h2>



<p>アバターは「Virtual Motion Capture(ばきゃも)」というソフトを利用することにしました。BeatSaberと相性が良く、セットアップも簡単だったので「<a rel="noreferrer noopener" href="https://booth.pm/ja/items/1777704" target="_blank">アルディナ</a>」さんのVRMを取り込んだら、すぐにVRゲームの動作を作ることができました</p>



<p>ただ、幽狐族のお姉様はVRMが同梱されていないため、ばきゃもで使うことができません。<br>そこで、VRM公式マニュアルを参考に、幽狐族のお姉様のVRMファイルを作成してみることにしました</p>



<h2 class="wp-block-heading">作成環境</h2>



<p>環境は以下の通り<br>・Unity 2020 2.7f1<br>・UniVRM <a href="https://github.com/vrm-c/UniVRM/releases/tag/v0.66.0">v0.66.0</a><br>作業手順は<a rel="noreferrer noopener" href="https://vrm.dev/how_to_make_vrm/" target="_blank">公式マニュアル</a>に書かれているため、手順通りに進めていきます。</p>



<h2 class="wp-block-heading">幽狐族のお姉様をVRMで出力</h2>



<p>幽狐族のお姉様のVRM作成手順を紹介します</p>



<h3 class="wp-block-heading">付属のfbxファイルをVRMとして出力</h3>



<p>必須パッケージを読み込みます。<br>・「幽弧族のお姉様」のUnityPackageを読み込む<br>・UniVRM Ver0.66を読み込む</p>



<p>読み込みが完了すると「幽弧さん」フォルダとVRM0のメニューが追加されます</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-4.png"><img loading="lazy" decoding="async" width="1024" height="555" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-4-1024x555.png" alt="" class="wp-image-2600" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-4-1024x555.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-4-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-4-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-4-1536x832.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-4.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>VRM出力設定を行います<br>・「幽弧さん」フォルダのmodel.fbxをシーンに配置する<br>・「幽弧さん」フォルダのMaterialsのシェーダーをすべて「MToon」に変更する</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-5.png"><img loading="lazy" decoding="async" width="1024" height="556" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-5-1024x556.png" alt="" class="wp-image-2601" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-5-1024x556.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-5-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-5-768x417.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-5-1536x834.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-5.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>・UnityメニューのVRM0をクリックし、VRMエクスポート画面を表示する<br>・Title、Version、Authorの項目を入力し、Exportボタンを押す</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-6.png"><img loading="lazy" decoding="async" width="1024" height="556" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-6-1024x556.png" alt="" class="wp-image-2602" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-6-1024x556.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-6-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-6-768x417.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-6-1536x834.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-6.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>ここまでの作業でVRMファイルが作成されます</p>



<h3 class="wp-block-heading">ばきゃもに取り込み、動作確認</h3>



<p>VRMファイルをばきゃもに取り込みキャリブレーションを行えば、アバターとして利用することができます</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-8.png"><img loading="lazy" decoding="async" width="1024" height="514" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-8-1024x514.png" alt="" class="wp-image-2603" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-8-1024x514.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-8-300x151.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-8-768x386.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-8-1536x772.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-8.png 1676w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>ただ、この状態では揺れ物や瞬きなどの設定は一切含まれていないため、単純に体の動きとキャラクターの動きが連動するだけになります。<br>次はVRMに揺れ物や表情を付ける作業を行います</p>



<h2 class="wp-block-heading">幽狐族のお姉様のVRMに各種設定を行う</h2>



<h3 class="wp-block-heading">揺れ物の設定</h3>



<p>VRMを出力すると、VRMファイルと一緒にプレハブも生成されます。<br>プレハブをUnityのシーンに取り込み、各種設定を行います。</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-10.png"><img loading="lazy" decoding="async" width="1024" height="555" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-10-1024x555.png" alt="" class="wp-image-2605" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-10-1024x555.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-10-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-10-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-10-1536x832.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-10.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>揺れ物は「secondary」というオブジェクトにスクリプトがアタッチされていて、そこに対して設定を入れ込みます。<br>幽弧さんの場合、合計20個揺れ物を設定しました</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-11.png"><img loading="lazy" decoding="async" width="1024" height="555" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-11-1024x555.png" alt="" class="wp-image-2608" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-11-1024x555.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-11-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-11-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-11-1536x832.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-11.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>Unityの再生ボタンを押せば、揺れ物がどのように動くか確認することができます</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="661" height="520" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210310_001.gif" alt="" class="wp-image-2607"/></figure>



<h3 class="wp-block-heading">揺れ物の当たり判定の設定</h3>



<p>このままではスカートが体を突き抜けてしまうので、揺れ物用の当たり判定を付けます。<br>マニュアルによると、当たり判定を設定したいボーンに「<a rel="noreferrer noopener" href="https://vrm.dev/docs/univrm/springbone/univrm_secondary/#%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3vrmspringbonecollidergroup%E5%BD%93%E3%81%9F%E3%82%8A%E5%88%A4%E5%AE%9A" target="_blank">VRMSpringBoneColliderGroup</a>」スクリプトをアタッチすればよいとのことでした</p>



<p>幽子さんは以下のように設定してみました。<br>紫が当たり判定、黄色が揺れ物制御用の当たり判定となります</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-15.png"><img loading="lazy" decoding="async" width="1024" height="555" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-15-1024x555.png" alt="" class="wp-image-2609" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-15-1024x555.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-15-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-15-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-15-1536x832.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-15.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>合計8か所のボーンに当たり判定を組み込みました</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-16-1024x554.png" alt="" class="wp-image-2610" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-16-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-16-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-16-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-16-1536x831.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-16.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">表情の設定</h3>



<p><a href="https://vrm.dev/docs/univrm/blendshape/univrm_blendshape/" target="_blank" rel="noreferrer noopener">マニュアル</a>に沿って設定を行っていきます</p>



<p>VRM Blend Shape Proxyに設定されている「Blend Shape Avator」の設定を行います</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-17.png"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-17-1024x554.png" alt="" class="wp-image-2613" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-17-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-17-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-17-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-17-1536x831.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-17.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>Blend Shape Avatorを開くと、それぞれの表情に対応するボタンがあるので、一つ一つ設定していきます<br>(例えば、Aなら口を開けた表情 など)</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-18.png"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-18-1024x554.png" alt="" class="wp-image-2614" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-18-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-18-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-18-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-18-1536x831.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-18.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>ブレンドシェイプのプレビューはインスペクター下部のプレビューエリアで確認できます</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-19.png"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-19-1024x554.png" alt="" class="wp-image-2615" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-19-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-19-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-19-768x415.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-19-1536x830.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-19.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>新規で表情を追加する場合は「Create Blend Shape Clip」をクリックします</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-20.png"><img loading="lazy" decoding="async" width="1024" height="555" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-20-1024x555.png" alt="" class="wp-image-2616" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-20-1024x555.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-20-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-20-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-20-1536x833.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-20.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<h3 class="wp-block-heading">視線の設定を行う</h3>



<p>視線の確認用に、視線のターゲットとなるオブジェクト、頭のボーンを設定することで視線の確認が行えます</p>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-21.png"><img loading="lazy" decoding="async" width="1024" height="555" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-21-1024x555.png" alt="" class="wp-image-2618" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-21-1024x555.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-21-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-21-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-21-1536x832.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-21.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<h2 class="wp-block-heading">設定内容の確認を行う</h2>



<p>Unityのプレイボタンをクリックし、動作を確認していきます<br>・モデルを動かせば、揺れ物の確認ができます<br>・視線確認用のターゲットオブジェクトを動かすと、視線の確認ができます<br>・VRM Blend Shape Proxyの設定を変えると、表情の確認ができます</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="584" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210310_002-1024x584.gif" alt="" class="wp-image-2619" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210310_002-1024x584.gif 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210310_002-300x171.gif 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210310_002-768x438.gif 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">以上</h2>



<p>はじめての作業だったため、半日ほどかかりましたがひとまずVRMアバターを作成することができました。<br>これを使用すれば、VRM対応アプリに読み込ませることができるので活用方法が広がりますね。</p>



<p>ばきゃもに取り込むとこんな感じで動きます</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1275" height="715" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210310_003.gif" alt="" class="wp-image-2621"/></figure>



<figure class="wp-block-video"><video controls src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210303_004.mp4"></video></figure>



<p>boothではいろいろなアバターが販売されていますが、幽弧さんのようにVRMファイルが付属しないモデルもあります。そんな時にVRMファイルの作成方法を知っておけば、活用方法も広がるのではと思います。</p>



<a href="https://www.amazon.co.jp/Fantom-VRM-Live-Viewer/dp/B083Y4QZRW?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=VRM&amp;qid=1615370399&amp;sr=8-7&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=a13fa3d45c7e6b7e68f00ce55b2ac52b&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B083Y4QZRW&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B083Y4QZRW" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/%E5%85%A5%E9%96%80Blender2-9-%E3%82%BC%E3%83%AD%E3%81%8B%E3%82%89%E5%A7%8B%E3%82%81%E3%82%8B3D%E5%88%B6%E4%BD%9C-%E4%BC%8A%E4%B8%B9-%E3%82%B7%E3%82%B2%E3%83%A6%E3%82%AD/dp/479806128X?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=VRM&amp;qid=1615370415&amp;rnid=2321267051&amp;s=books&amp;sr=1-2&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=e191fef27b72ad70dc959681b52f5f4e&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=479806128X&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=479806128X" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<a href="https://www.amazon.co.jp/VR%E3%81%AE%E3%81%99%E3%81%94%E3%81%95%EF%BD%9E30%E4%BB%A3%E3%81%AE%E4%BC%9A%E7%A4%BE%E5%93%A1%E3%81%8C1%E5%B9%B4%E9%96%93%E6%B2%A1%E9%A0%AD%E3%81%97%E3%81%A6%E8%A6%8B%E3%81%88%E3%81%9F%E3%81%93%E3%81%A8%EF%BD%9E-%E3%82%82%E3%81%A3%E3%81%A8%E5%A4%9A%E3%81%8F%E3%81%AE%E4%BA%BA%E3%81%ABVR%E3%82%92%E7%9F%A5%E3%81%A3%E3%81%A6%E3%82%82%E3%82%89%E3%81%84%E3%81%9F%E3%81%84%EF%BC%81-%E3%81%B2%E3%82%89%E5%90%89VR%E3%83%96%E3%83%83%E3%82%AF%E3%82%B9-%E3%81%B2%E3%82%89%E5%90%89-HIRAKICHI-ebook/dp/B08JGL3TMY?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;dchild=1&amp;keywords=VRM&amp;qid=1615370415&amp;rnid=2321267051&amp;s=books&amp;sr=1-8&amp;linkCode=li2&amp;tag=monodon-22&amp;linkId=1e9accd0043afa1a3bffe618c529ad58&amp;language=ja_JP&amp;ref_=as_li_ss_il" target="_blank" rel="noopener"><img decoding="async" src="//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B08JGL3TMY&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=monodon-22&amp;language=ja_JP" border="0"></a><img loading="lazy" decoding="async" src="https://ir-jp.amazon-adsystem.com/e/ir?t=monodon-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B08JGL3TMY" alt="" style="border:none !important; margin:0px !important;" width="1" height="1" border="0">
<p>投稿 <a href="https://sheltie-garage.xyz/2021/03/vrm-%e3%82%a2%e3%83%90%e3%82%bf%e3%83%bc%e8%a8%ad%e5%ae%9a%e3%82%92%e8%a1%8c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/">VRM アバター設定を行ってみる</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		<enclosure url="https://sheltie-garage.xyz/wp-content/uploads/2021/03/20210303_004.mp4" length="3763347" type="video/mp4" />

			</item>
		<item>
		<title>[SteamVR] No pose action set for this component</title>
		<link>https://sheltie-garage.xyz/2021/03/steamvr-no-pose-action-set-for-this-component/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Wed, 03 Mar 2021 13:07:20 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[VR]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2557</guid>

					<description><![CDATA[<p>SteamVRで開発していて、上記エラーが起こってしまったため備忘録 解決方法 先に解決方法を書いておくと、「CameraRig」プレハブのAction Pose欄がNoneになっていたのが原因でした。プレハブ側の設定に [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/03/steamvr-no-pose-action-set-for-this-component/">[SteamVR] No pose action set for this component</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>SteamVRで開発していて、上記エラーが起こってしまったため備忘録</p>



<h2 class="wp-block-heading">解決方法</h2>



<p>先に解決方法を書いておくと、「CameraRig」プレハブのAction Pose欄がNoneになっていたのが原因でした。<br>プレハブ側の設定に、Action Poseを設定してやることで解決しました。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="639" height="386" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-12.png" alt="" class="wp-image-2558" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-12.png 639w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-12-300x181.png 300w" sizes="auto, (max-width: 639px) 100vw, 639px" /></figure>



<h2 class="wp-block-heading">経緯</h2>



<p>SteamVRアプリを作っていて、シーン変更を行うとコントローラのAction Poseが取得できないというエラーが発生しました。エラーメッセージは</p>



<p><em>[SteamVR] No pose action set for this component</em></p>



<p>というもの。</p>



<p>アプリのシーン構成は「タイトル画面」「ゲーム画面」の2つのシーンからなるシンプルなもので、ゲーム画面からタイトル画面に戻るとエラーが発生しました。<br>厄介なのは、初回起動時のタイトル画面ではエラーは発生せず、ゲーム画面から戻ってきたときのみ発生するというものです。</p>



<h2 class="wp-block-heading">原因</h2>



<p>おそらく「SteamVR Input」の設定画面で各種ボタンの構成を作り直したので、この時にプレハブからアクションの設定が抜け落ちてしまったようです。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="705" height="467" src="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-13.png" alt="" class="wp-image-2559" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-13.png 705w, https://sheltie-garage.xyz/wp-content/uploads/2021/03/Image-13-300x199.png 300w" sizes="auto, (max-width: 705px) 100vw, 705px" /></figure>



<p>解決方法に書いた通り、「<strong><span class="has-inline-color has-vivid-red-color">CameraRigプレハブ</span></strong>」のコントローラに正しくAction Poseを設定することで解決できました。ヒエラルキービューのインスタンスではなく、プレハブ側に設定を入れてやる必要があります。</p>



<h2 class="wp-block-heading">以上</h2>



<p>SteamVRはまだまだ動きがつかみきれないので、いったんエラーが発生すると原因究明と対応が面倒ですね・・・<br>Unityアセットの「VR Interaction Framework」を購入してみたので、次回からはこちらのフレームワークを使う予定<br>これでVR開発の効率が上がればよいが・・・</p>



<iframe src="https://assetstore.unity.com/linkmaker/embed/package/161066/widget-wide?aid=1101l3Jco" style="width:600px; height:130px; border:0px;"></iframe>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/03/steamvr-no-pose-action-set-for-this-component/">[SteamVR] No pose action set for this component</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>RayFireのInitialize, Activate, Demolishについて</title>
		<link>https://sheltie-garage.xyz/2021/02/rayfire%e3%81%aeinitialize-activate-demolish%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 14 Feb 2021 13:34:30 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2483</guid>

					<description><![CDATA[<p>Unityの破壊系アセット「Ray Fire」を(実は結構前から)使い始めました。が、タイトルの3つの状態がいまいち理解できず苦戦しています。ということで、自分なりの考察をメモしておきます。 かなり高額な部類のAsset [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/02/rayfire%e3%81%aeinitialize-activate-demolish%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/">RayFireのInitialize, Activate, Demolishについて</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Unityの破壊系アセット「Ray Fire」を(実は結構前から)使い始めました。<br>が、タイトルの3つの状態がいまいち理解できず苦戦しています。<br>ということで、自分なりの考察をメモしておきます。</p>



<iframe src="https://assetstore.unity.com/linkmaker/embed/package/148690/widget-wide?aid=1101l3Jco" style="width:600px; height:130px; border:0px;"></iframe>



<p>かなり高額な部類のAssetですが、セールなどをうまく活用して購入しましょう</p>



<h2 class="wp-block-heading">検証用シーン</h2>



<figure class="wp-block-image size-large"><a href="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-16.png"><img loading="lazy" decoding="async" width="1024" height="554" src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-16-1024x554.png" alt="" class="wp-image-2484" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-16-1024x554.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-16-300x162.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-16-768x416.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-16-1536x831.png 1536w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-16.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>執筆時点で最新のRayFire Ver1.24を使用。<br>PlaneとCubeを配置し、Cubeには「RayFire Rigid」コンポーネントが設定されている。</p>



<h2 class="wp-block-heading">Initialize</h2>



<p>Initializeはその名の通り初期化処理を行う。Youtubeのチュートリアルは以下の通り<br><a rel="noreferrer noopener" href="https://www.youtube.com/watch?v=-wW9OfnhIh0&amp;feature=youtu.be" target="_blank">https://www.youtube.com/watch?v=-wW9OfnhIh0&amp;feature=youtu.be</a></p>



<p>初期化処理を行わないと、破壊表現が行えないので最初に行う必要がある。<br>スクリプトから任意で呼び出すことができるし、プロパティでInitializationを「At Start」に設定しておけば、自動で初期化することもできる。</p>



<h2 class="wp-block-heading">Activate</h2>



<p>Main > Simulation Type > Inactive に設定されたオブジェクトについて、シミュレーションを有効にする。<br>なので、Simulation TypeがInactive以外の設定になっている場合、特に気にする必要がない(と思われる)<br>Youtubeのチュートリアルは以下の通り<br><a href="https://www.youtube.com/watch?v=KZ8h9F45lkM&amp;feature=youtu.be" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=KZ8h9F45lkM&amp;feature=youtu.be</a></p>



<p>例えば、「最初から物理演算を有効にしたくないけど、特定のタイミングで有効にしたい」という場合、SimulationTypeをInactiveにすることで対応できる。<br>Inactive から Activeに状態を変化させるにはスクリプトからメソッドを呼び出すほか、各種プロパティからも調整ができる。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="349" height="265" src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-17.png" alt="" class="wp-image-2485" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-17.png 349w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-17-300x228.png 300w" sizes="auto, (max-width: 349px) 100vw, 349px" /></figure>



<p>ちなみに、Activateする前に破壊(Demolish)を行うと、物理演算が効いていないため見た目の変化はないように見える。(が、オブジェクト自体は細かく分割される)</p>



<h2 class="wp-block-heading">Demolish</h2>



<p>実際にオブジェクトの破壊を行う。事前にInitializeが呼び出されている必要あり(と思われる)<br>Demolish自体はスクリプトから任意でメソッドを呼ぶことで実行できるほか、オブジェクトが衝突したときにも自動的に行われる(と思われる)<br>ただ、オブジェクト同士が衝突したときのDemolish発動条件がまだよくわかっていないので、この辺りは要検証・・・</p>



<figure class="wp-block-video"><video controls src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/20210214_001.mp4"></video></figure>



<p>Youtubeのチュートリアルは以下の通り<br><a rel="noreferrer noopener" href="https://www.youtube.com/watch?v=_aO08dcqBOQ" target="_blank">https://www.youtube.com/watch?v=_aO08dcqBOQ</a></p>



<h2 class="wp-block-heading">ひとまず以上</h2>



<p>購入したのはいいものの、なかなか理想的な破壊が行える苦戦が続いております。<br>YouTubeのチュートリアルが充実しているのは良いのですが、バージョンが古かったり、ドキュメントのほうはあまりスクリプトに触れられていなかったりと、マニュアル周りの整備が若干追いつていない感じです。<br>出来ることは多そうですが、現状使いこなすのはかなり難しそうですね・・・<br>ドキュメント周りが整備されることを願いつつ、しばらくはトライアンドエラーで理想的な破壊を実現したいところです</p>



<p></p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/02/rayfire%e3%81%aeinitialize-activate-demolish%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/">RayFireのInitialize, Activate, Demolishについて</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		<enclosure url="https://sheltie-garage.xyz/wp-content/uploads/2021/02/20210214_001.mp4" length="428002" type="video/mp4" />

			</item>
		<item>
		<title>Obi Fluidをとりあえず使ってみる その2</title>
		<link>https://sheltie-garage.xyz/2021/02/obi-fluid%e3%82%92%e3%81%a8%e3%82%8a%e3%81%82%e3%81%88%e3%81%9a%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae2/</link>
		
		<dc:creator><![CDATA[sheltie]]></dc:creator>
		<pubDate>Sun, 14 Feb 2021 12:38:39 +0000</pubDate>
				<category><![CDATA[Unity]]></category>
		<category><![CDATA[技術系]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/?p=2475</guid>

					<description><![CDATA[<p>前回の投稿でひとまずパーティクルを発生させるところまで作成しました。今回は、より液体らしく描画されるように「Obi Fluid Renderer」を使用します。 設定方法 Obi Fluid Rendererはメインカメ [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/02/obi-fluid%e3%82%92%e3%81%a8%e3%82%8a%e3%81%82%e3%81%88%e3%81%9a%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae2/">Obi Fluidをとりあえず使ってみる その2</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p><a rel="noreferrer noopener" href="https://sheltie-garage.xyz/2021/01/obi-fluid%e3%82%92%e3%81%a8%e3%82%8a%e3%81%82%e3%81%88%e3%81%9a%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b/" data-type="post" data-id="2448" target="_blank">前回</a>の投稿でひとまずパーティクルを発生させるところまで作成しました。<br>今回は、より液体らしく描画されるように「Obi Fluid Renderer」を使用します。</p>



<h2 class="wp-block-heading">設定方法</h2>



<p>Obi Fluid Rendererはメインカメラにアタッチします</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="591" height="695" src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-11.png" alt="" class="wp-image-2476" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-11.png 591w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-11-255x300.png 255w" sizes="auto, (max-width: 591px) 100vw, 591px" /></figure>



<p>次にParticle Renderersの項目にレンダリング対象のコンポーネントを設定します。<br>パーティクルを発生させるコンポーネント(Obi Emitter)を指定すればOK</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="588" height="359" src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-12.png" alt="" class="wp-image-2477" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-12.png 588w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-12-300x183.png 300w" sizes="auto, (max-width: 588px) 100vw, 588px" /></figure>



<p>とりあえず以上で液体っぽくレンダリングされるようになります。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="556" src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-13-1024x556.png" alt="" class="wp-image-2478" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-13-1024x556.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-13-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-13-768x417.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-13.png 1331w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>結果が上の画面。</p>



<p class="has-large-font-size"><strong><span class="has-inline-color has-vivid-red-color">正直、変わってないですね</span></strong></p>



<p>Obi Rendererをを利用する際は、Obi Particle Rendererの「Renderer」のチェックをOFFにするようにと注意がありました<br><a rel="noreferrer noopener" href="http://obi.virtualmethodstudio.com/tutorials/fluidrendering.html" target="_blank">http://obi.virtualmethodstudio.com/tutorials/fluidrendering.html</a></p>



<p>設定的には以下のような感じです</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="592" height="310" src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-14.png" alt="" class="wp-image-2479" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-14.png 592w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-14-300x157.png 300w" sizes="auto, (max-width: 592px) 100vw, 592px" /></figure>



<p>実際の画面はこんな感じです</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="556" src="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-15-1024x556.png" alt="" class="wp-image-2480" srcset="https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-15-1024x556.png 1024w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-15-300x163.png 300w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-15-768x417.png 768w, https://sheltie-garage.xyz/wp-content/uploads/2021/02/Image-15.png 1331w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>つぶつぶ感が消えて、水滴っぽい見た目になりました。<br>ちなみにObi Particle Rendererの「Renderer」のチェックをOFFにすると、Scnenビューでパーティクルが描画されなくなります。Gameビューでのみ確認可能になるので、そこだけ注意が必要ですね。<br>(自分はそのことに気づかず、なんでパーティクルが描画されないのかしばらく悩みました)</p>



<h2 class="wp-block-heading">以上です</h2>



<p>Obi Rendererを利用すれば、より液体っぽいレンダリングが可能です。<br>パラメータがいろいろあるようなので、マニュアルを見ながら、どんな変化があるのかいろいろ試していきたいと思います。</p>



<iframe src="https://assetstore.unity.com/linkmaker/embed/package/63067/widget-wide?aid=1101l3Jco" style="width:600px; height:130px; border:0px;"></iframe>
<p>投稿 <a href="https://sheltie-garage.xyz/2021/02/obi-fluid%e3%82%92%e3%81%a8%e3%82%8a%e3%81%82%e3%81%88%e3%81%9a%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae2/">Obi Fluidをとりあえず使ってみる その2</a> は <a href="https://sheltie-garage.xyz">Sheltie&#039;s Garage</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
