Unity
このページが前準備でわかりやすかった。 client_secrets.json の準備 dev.classmethod.jp Unityでは下記ページを参考にNuGetでパッケージをインストール VisualStudioでNuGetを行う。 Google.Apis.1.57.0 Google.Apis.Auth.1.57.0 Google.Apis.Core.1.57.0 …
nabla-tech-lab.hatenablog.com qiita.com
www.renderheads.com _AVProVideo.Extensions.Timeline アセンブリ定義の参照に、Timeline パッケージアセンブリ Unity.Timeline を追加します。 AVPRO_PACKAGE_TIMELINE をプレーヤーのプリプロセッサー定義(Scriptiong Define Symbols)に追加し、スクリ…
qiita.com 上記記事からの引用 [CreateAssetMenu(fileName = "ScoreScriptableObject", menuName = "ScoreScriptableObject", order = 0)] public class ScoreScriptableObject : UnityEngine.ScriptableObject, ISerializationCallbackReceiver { [Serializ…
press = Keyboard.current[Key.A].isPressed; down = Keyboard.current[Key.A].wasPressedThisFrame; up = Keyboard.current[Key.A].wasReleasedThisFrame;
シンプルに記載されていて分かりやすい qiita.com github.com qiita.com www.fast-system.jp github.com
PointCache (.pcache) を作成する方法 Visual Effect Graph を使用して描画する方法 UnityのPointCacheはどうやらファイルサイズが1,048,576KBを超えると読み込めないようです。 ファイルを分割する必要がある。 ファイル分割したい場合はEmEditorで簡単に行…
github.com 上記のプロジェクトなど点群のサイズを指定するのに下記の用にShader中でPSIZEが使われるが、これがDirectX11,12では動作しない。 サイズ指定が反映されず、点のサイズでしか表示されない。 struct v2f { float4 pos: POSITION; fixed4 col: COLO…
.ply に対応 github.com aec.unity3d.jp .pts に対応 note.com .off に対応 onetech.jp rightcode.co.jp assetstore.unity.com 注意 shader中の点群のサイズ指定の PSIZE は OpenGLCore等では正常に動作するが、DirectX11,12 では正常動作せず、サイズが反映…
TaskCompletionSource を使用する Timelineを再生し終了するまでのTask public async Task ShowAhimAsync(CancellationToken token = default) { var tcs = new TaskCompletionSource<int>(); System.Action<PlayableDirector> handler = null; handler = (obj) => { playableDirect</playabledirector></int>…
良さそう WWDC 2022タイミングで公開されたAppleからのUnityプラグイン。ハプティックとか空間オーディオ、AppleのGameController対応とかiOS、macOS、tvOS対応でUnity標準機能がカバーしないOS独自機能のプラグインかなhttps://t.co/JT9bXrwCrL— masafumi (…
古い情報が多くてハマってしまった。 var enableProperty = property.FindPropertyRelative("enable"); enableProperty.boolValue = EditorGUI.Toggle(drawRect, "enable", enableProperty.boolValue); みたいな書き方があるが、これだとインスペクターを複…
プレハブがインポートされた時に呼び出される関数 using UnityEditor; using UnityEngine; public class Example : AssetPostprocessor { private void OnPostprocessPrefab( GameObject root ) { root.AddComponent<BoxCollider>(); } } unity.com Prefabを生成/上書き P</boxcollider>…
UnityでNativePluginを実装するときに、dllに実装されている関数を確認したい。 kazupon.org 上記ページに方法記載されている。下記は概要。 Visual Studio Installer で[C++ によるデスクトップ開発]がインストールされているかチェック。未インストールで…
CinemachinePathBase.PositionUnits.PathUnits がイマイチわかりにくくて忘れるのでメモ パス上の座標取得 パス上のポイント座標を取得する方法として cinemachinePath.EvaluatePositionAtUnit(float pos, PositionUnits units); がある // posはパス上の距…
note.com github.com docs.unity3d.com blog.mobilehackerz.jp synamon.hatenablog.com note.com www.youtube.com UE docs.unrealengine.com
自作でShaderを作っているとVRで片側だけしか表示されないことがある。 Multi Pass では問題ないが、Single Pass では対応が必要。 参考にしたページ tips.hecomi.com docs.unity3d.com forpro.unity3d.jp
try{ { // do something } catch (System.OperationCanceledException e) { Debug.LogWarning("##### cancel #####"); Debug.LogWarning(e); } catch (Exception e) { Debug.LogError(e); } は実装しておく。 中でエラーが発生した時や、Cancel発生時などは…
Unity の WheelCollider で車(タイヤ)ごとに個別の重力を設定しようとすると正常に動作しない。(Physicsの設定で全体の重力を変更するのであれば問題なく動作する) そのため、球面状を動く車体を作る場合にはカスタムの WheelCollider を使用する必要が…
UnityからのTelloの制御を行いたい。 Githubを調べてみると TelloForUnity が。なんと映像の受信もできる。 github.com readme の通りffmpeg 入れていれば、windowsでは問題なく動作した。 macで実行してみると、TelloVideoDecoder で DLLNotFoundException …
dev.classmethod.jp developer.spotify.com 楽曲に埋め込まれた情報 SpotifyのAPI便利すぎwwwwwwwwwwwwwKHUFRUDAMO NOTES - Official Web Site Slackとの連携 slackで曲名入れたらスマホで曲が流れる遊びしてみた | オープンワーク株式会社 自…
note.com github.com mirror-networking.gitbook.io tks2.co.jp am1tanaka.hatenablog.com qiita.com qiita.com note.com github.com
XInputDotNet, SharpDX / Unityがバックグラウンド時に入力値取得・振動 - memomem 上記方法でやっていたが、新しい InputSystem であればPS4, XboxControllerの振動を問題なく使うことができる。 バックグランド入力はXInputであれば可能。PS4コントローラ…
XInputDotNet XInputのコントローラの振動や入力取得が可能。 ウィンドウが選択されていなくても(バックグラウンドでも)入力値が取得できる。 github.com qiita.com SharpDX DirectInputの入力値取得が可能。 ウィンドウが選択されていなくても(バックグ…
簡単なグレーボックスなどプロトタイピングには良い。 objなどにexportもできるし。 creator.cluster.mu
C#で日本語をPDFに出力する(PDFSharpを利用) | ガンマソフト株式会社 UnityでPDFを弄りたい。 PDFSharpが使い勝手も良さそうなので試すが、 Editor上では問題無いがビルドすると、 “Encoding 1252 data could not be found” が表示される。 調べてみると下…
vJoy ビルド時に DllNotFoundException が出てvJoyが使用できない。 解決策 vGenInterface.dll vGenInterfaceWrap.dll をビルドした .exe と同階層に配置する。 XXX_Data/Plugins の中の vGenInterface.dll を削除する。 エラーは出ないが、vJoyの入力が反映…
RenderMode: Billboard だと描画されない。 そのほかのモード、Vertical Billboard などであれば描画される。
void SetDitry() { #if UNITY_EDITOR // 変更した MonoBehaviour UnityEditor.EditorUtility.SetDirty(monoBehaviour); // シーンの取得 var currentScene = UnityEngine.SceneManagement.SceneManager.GetActiveScene(); // 変更したことを知らせる。 Unity…
Logファイルの場所 zenn.dev DevicePortal で接続 [System] > [File explorer] [LocalAppData] > (パッケージ名) > [TempState] UnityPlayer.log を Save します。 ※なぜかwindows Edge でしかSave出来なかった。 Development buildでは無いのにlogが表示さ…