2021-03-01から1ヶ月間の記事一覧
リポジトリ 使用例 using Kogane; using UnityEngine; public class Example : MonoBehaviour { private void Awake() { Debug.Log( JsonUnityEngineApplication.Get() ); Debug.Log( JsonUnityEngineDebug.Get() ); Debug.Log( JsonUnityEngineSceneManagem…
スライド
スライド
概要 Hierarchy ウィンドウがロックされてしまっている可能性がある ロックされている場合はアイコンをクリックしてロックを外す
概要 Project Settings の「Audio > Global Volume」から変更できる AudioListener.volume = 0.5f; スクリプトからは AudioListener.volume で変更できる
概要 keytool -list -keystore "【.keystore のファイルパス】" -v keytool.exe は例えば以下の場所に存在する C:\Program Files (x86)\Java\jre1.8.0_281\bin\keytool.exe
概要 using System.Collections.Generic; using System.Linq; using System.Reflection; using NUnit.Framework; using UnityEditor; using UnityEditor.AddressableAssets; using UnityEditor.AddressableAssets.Settings; public sealed class Addressable…
概要 using System.Linq; using NUnit.Framework; using UnityEditor.AddressableAssets; using UnityEditor.AddressableAssets.Settings; public sealed class Addressables用テスト { private sealed class DuplicateGroupResult { private readonly strin…
概要 using UnityEditor; using UnityEditor.Build; using UnityEditor.Build.Reporting; using UnityEngine; public class Test : IPreprocessBuildWithReport { public int callbackOrder => 0; public void OnPreprocessBuild( BuildReport report ) { vo…
概要 Google Chrome C:\Users\【ユーザ名】\AppData\Local\Google\Chrome\User Data\Default\IndexedDB\【URL】 Mozilla Firefox C:\Users\【ユーザ名】\AppData\Roaming\Mozilla\Firefox\Profiles\【プロファイル名】\storage\default\【URL】 Microsoft Ed…
概要 Unity でビルドした iOS アプリで「unity-webview」を使用して 自己署名証明書を使用しているサーバの Web ページを表示したい場合、 上記のサイト様で記載されている以下のコードを 「WebView.mm」に記述することで Web ページを表示できるようになる …
概要 Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates! W…
概要 CommandInvokationFailure: Unity Remote requirements check failed C:/Program Files/Unity/Hub/Editor/2019.4.17f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK\platform-tools\adb.exe forward tcp:7201 tcp:7201 stderr[ error: no devices/em…
概要 Visual Studio メニューの「拡張機能 > ReSharper > Options...」を選択して 左メニューの「Code Editing > Code Cleanup > General」を選択して 「Automatically run cleanup when saving a file~」をオンにすることで ファイル保存時に自動で Code Cl…
通常 --- marp: true --- # タイトル --- # タイトル 本文1 本文2 本文3 セクションヘッダーは中央揃えタイトルと本文は左上基準 --- marp: true style: | section { justify-content: normal; } section.lead { justify-content: center; text-align: cent…
はじめに 「UnityConsole」を Unity プロジェクトに導入することで ゲーム中にコンソールのようにコマンドを実行できるようになります クイックスタート using UnityEngine; public class Example : MonoBehaviour { private void Awake() { // コンソールの…
概要 using UnityEditor; using UnityEngine; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var path = AssetDatabase.GetAssetPath( Selection.activeObject ); var mainAssetType = AssetDatabase.GetMainAsse…
概要 using System; using System.Xml.Linq; class Program { static void Main() { var document = XDocument.Load( "【XML のファイルパス】" ); foreach ( var xElement in document.Descendants().Elements() ) { Console.WriteLine( xElement.Name ); }…
概要 Visual Studio で「ファイル変更の検出」ダイアログが表示されている時に Unity から C# スクリプトを開こうとすると Visual Studio の新しいインスタンスが起動してしまう現象に遭遇した Unity の Package Manager から Visual Studio Editor を削除し…
概要
概要 Script error: OnTriggerStay This message parameter has to be of type: [UNREGISTERED] The message will be ignored. Unity で WebGL ビルドしたゲームを起動したら 上記のエラーが発生する現象に遭遇した Project Settings の「Player > Strip Eng…
スライド
スライド