<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>unity — technical-notes.com</title><description>Unity のスクリプティング・マテリアル・ライティングのノート。Astro と MDX で書き、site-sync で配信しています。</description><link>https://technical-notes.com/unity/</link><atom:link href="https://technical-notes.com/unity/rss.xml" rel="self" type="application/rss+xml"/><language>ja</language><lastBuildDate>Mon, 10 Feb 2025 07:36:33 GMT</lastBuildDate><item><title>ベルトコンベアをつくる</title><link>https://technical-notes.com/unity/2024/12/17/belt-conveyor/</link><guid isPermaLink="true">https://technical-notes.com/unity/2024/12/17/belt-conveyor/</guid><description>環境：Unity 2022.3.40f1、Houdini 20.0.751 空港の手荷物受取所 (Baggage Claim)でスーツケースが流れている様子を見て、ゲームとして再現したら面白そうと思いベルトコンベアの仕組</description><pubDate>Mon, 16 Dec 2024 18:24:21 GMT</pubDate><media:content url="https://technical-notes.com/unity/_astro/belt_conveyour_32.CfVqdZkH_193cMc.webp" medium="image"/><category>Houdini</category></item><item><title>キーを押したらインスタンスを生成する</title><link>https://technical-notes.com/unity/2024/08/01/key-down-and-generate-prefab/</link><guid isPermaLink="true">https://technical-notes.com/unity/2024/08/01/key-down-and-generate-prefab/</guid><description>Zキーを押すと特定の座標にプレファブオブジェクトをスポーンさせるクラスをつくる。Instantiate()関数を使う。 コードはランダムな回転値を与えるようにしてあります。</description><pubDate>Wed, 31 Jul 2024 16:00:00 GMT</pubDate><media:content url="https://technical-notes.com/unity/_astro/spawn_instances_05.DBcARMGx_Z2cBtGw.webp" medium="image"/><category>デバッグ</category><category>ランダム</category></item><item><title>RigidbodyとPhisic Material</title><link>https://technical-notes.com/unity/2022/04/18/rigidbody-and-phisic-material/</link><guid isPermaLink="true">https://technical-notes.com/unity/2022/04/18/rigidbody-and-phisic-material/</guid><description>Rigidbodyの設定 Mass（質量）おそらく単位はキログラム。 Drag（空気抵抗）この値を上げるとゆっくりと落下したりする。空気抵抗を無視したければ０にしておく。 Angular Drag（回転の空気抵抗）物理的</description><pubDate>Sun, 17 Apr 2022 22:00:00 GMT</pubDate></item><item><title>ライトマップの設定</title><link>https://technical-notes.com/unity/2022/02/13/lightmap-settings/</link><guid isPermaLink="true">https://technical-notes.com/unity/2022/02/13/lightmap-settings/</guid><description>解像度とクオリティ 夜間のライティング等では圧縮が汚くなるのでCompress Lightmapsのチェックを外し、代わりに解像度（Max Lightmap Size）を下げる。 二次反射の強さ Indirect Int</description><pubDate>Sat, 12 Feb 2022 22:00:00 GMT</pubDate></item><item><title>ローポリスタイルのシェーダー</title><link>https://technical-notes.com/unity/2022/02/03/custom-lowpoly-shader/</link><guid isPermaLink="true">https://technical-notes.com/unity/2022/02/03/custom-lowpoly-shader/</guid><description>フラットシェーディングのようなローポリ向けのシェーダーをカスタムシェーダで書く。 頂点カラーを使う Standard Surface Shaderをつくり、数行書き加える。 エミッシブを使う グローバルイルミネーションの</description><pubDate>Wed, 02 Feb 2022 20:00:00 GMT</pubDate><media:content url="https://technical-notes.com/unity/_astro/lowpoly_shader_05.B9nXQqbb_Z2hwjFt.webp" medium="image"/></item><item><title>サマータイム</title><link>https://technical-notes.com/unity/2022/01/15/daylight-saving-time/</link><guid isPermaLink="true">https://technical-notes.com/unity/2022/01/15/daylight-saving-time/</guid><description>サマータイムへの対応 時差を求める タイムゾーンにおけるサマータイムの時間差を求める サマータイムが適用されている時間と、もともとの時間の差分を計算する。 サマータイムの判定</description><pubDate>Fri, 14 Jan 2022 20:00:00 GMT</pubDate><category>時間</category></item><item><title>データのセーブとロード</title><link>https://technical-notes.com/unity/2022/01/09/data-save-and-load/</link><guid isPermaLink="true">https://technical-notes.com/unity/2022/01/09/data-save-and-load/</guid><description>アプリのセーブデータのフォーマットにPlayerPrefはなるべく使わないほうがよいので、Json形式で保存する方法を採った。 セーブデータのフォーマットクラス「SaveData」と、保存クラス「SaveManager」</description><pubDate>Sat, 08 Jan 2022 20:00:00 GMT</pubDate></item><item><title>パーティクルをインスタンス描画する</title><link>https://technical-notes.com/unity/2021/12/21/draw-instance-particles/</link><guid isPermaLink="true">https://technical-notes.com/unity/2021/12/21/draw-instance-particles/</guid><description>環境：Unity 2020.3.11f1 Unityでパーティクルに取り組んでみました。Compute ShaderとGPU InstancingをつかってGPUでアニメーションと描画をさせています。 インスタンス描画を</description><pubDate>Mon, 20 Dec 2021 16:00:00 GMT</pubDate><media:content url="https://technical-notes.com/unity/_astro/instanced_particles_04.4Z2thX20_P5PoB.webp" medium="image"/><category>Particle</category></item><item><title>ジャンプ</title><link>https://technical-notes.com/unity/2020/01/27/jumping/</link><guid isPermaLink="true">https://technical-notes.com/unity/2020/01/27/jumping/</guid><description>環境：Unity 2019.2.13f1 せっかくなのでキャラクターをジャンプさせてみました。 まずはアニメーションの遷移から。アニメーションはジャンプする瞬間、ジャンプ中、着地の３つを用意する。Animatorはこのよ</description><pubDate>Sun, 26 Jan 2020 18:00:00 GMT</pubDate><media:content url="https://technical-notes.com/unity/_astro/unity_walker_20200127.Bpdz8HWU_AQR6V.webp" medium="image"/></item><item><title>目標に向かって走るキャラクター</title><link>https://technical-notes.com/unity/2020/01/26/running-toward-target/</link><guid isPermaLink="true">https://technical-notes.com/unity/2020/01/26/running-toward-target/</guid><description>環境：Unity 2019.2.13f1 カメラは平行移動と中心座標を回転する。キャラクターは一定の距離が開くと中心座標に向かって走る。 カメラのコード クラス名はCameraController2で、前回のコードを差し</description><pubDate>Sat, 25 Jan 2020 18:00:00 GMT</pubDate><media:content url="https://technical-notes.com/unity/_astro/unity_walker_20200126b.DmR0ME3P_2byJ4d.webp" medium="image"/></item><item><title>キャラクターとカメラ</title><link>https://technical-notes.com/unity/2020/01/25/character-and-camera/</link><guid isPermaLink="true">https://technical-notes.com/unity/2020/01/25/character-and-camera/</guid><description>環境：Unity 2019.2.13f1 キャラクターをアニメーションさせながら移動させ、カメラも追従するようにします。キャラクターの移動方向はカメラ視点が変わっても入力方向と一致するようにします。 準備 ボーンの入った</description><pubDate>Fri, 24 Jan 2020 17:00:00 GMT</pubDate><media:content url="https://technical-notes.com/unity/_astro/unity_walker_20200125b.C2cqw2Vi_Z12SkKi.webp" medium="image"/></item></channel></rss>