3テラバイト

プログラム関連備忘録サイト。主にゲーム。

C# Unity

Unityで実行環境の情報を取得する方法

投稿日:2022年1月25日 更新日:

System.Environmentクラスで現在の環境についての情報が取得できます。

OSバージョン

System.OperatingSystem os = System.Environment.OSVersion;

ユーザー名

string userName = System.Environment.UserName;

環境変数

System.Collections.IDictionary environmentVariables = System.Environment.GetEnvironmentVariables();

使用可能なプロセッサの数

int processorCount = System.Environment.ProcessorCount;

-C#, Unity


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


reCaptcha の認証期間が終了しました。ページを再読み込みしてください。

関連記事

no image

UnityのManaged Memoryサイズをスクリプトから取得する

こんにちは、今日はUnityのManaged Memoryサイズをスクリプトから取得する方法についてまとめていきます。 Profiler.GetMonoUsedSizeLong() Profiler. …

no image

UnityのProfilerの使い方

確認環境 Unity 2018.4.15f1 Profiler ウィンドウの開き方 Window > Analysis > Profiler から Profiler ウィンドウ を開きます。 Prof …

no image

簡易逆ジオコーディングサービスをUnityで使う

農研機構が提供しているWebサービス、簡易逆ジオコーディングサービスをUnityから使用してみます。https://aginfo.cgk.affrc.go.jp/rgeocode/index.html …

no image

Unityで0から指定範囲の間を行き来する数値を取得できる関数Mathf.PingPong

確認環境 Unity 2018.4.15f1 使い方 public static float PingPong(float t, float length); UnityEngine.Mathfに定義 …

no image

Unityで動画を再生する方法

こんにちは、今日はUnityで動画を再生する方法についてまとめていきます。 確認環境 Unity 2018.4.15f1 この記事で使用している動画ファイル A Road That Leads to …