NoaDebugger v1.2.0NoaDebugger v1.2.0
  • v1.6.0
  • v1.5.0
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.0
Demo
Contact
Buy
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • v1.6.0
  • v1.5.0
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.0
Demo
Contact
Buy
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • NoaInformation

NoaInformation

このクラスを介して、Information機能の情報を取得できます。

API一覧

Static Properties

API説明
SystemInformation保持しているシステム情報を返します。
UnityInformation保持しているUnity情報を返します。
OnDownloadダウンロードする時に実行するイベントです。
イベントハンドラが true を返すとダウンロードを許可し、false を返すとダウンロードを拒否します。

サンプルコード

using UnityEngine;
#if NOA_DEBUGGER
using NoaDebugger;
#endif

public class Example
{
    void ExampleMethod()
    {
#if NOA_DEBUGGER

        // システム情報を取得
        SystemInformation systemInfo = NoaInformation.SystemInformation;
        ApplicationInfo appInfo = systemInfo.ApplicationInfo;
        DeviceInfo deviceInfo = systemInfo.DeviceInfo;
        CpuInfo cpuInfo = systemInfo.CpuInfo;
        GpuInfo gpuInfo = systemInfo.GpuInfo;
        SystemMemoryInfo systemMemoryInfo = systemInfo.SystemMemoryInfo;
        DisplayInfo displayInfo = systemInfo.DisplayInfo;

        // Unity情報を取得
        UnityInformation unityInfo = NoaInformation.UnityInformation;
        UnityInfo unity = unityInfo.UnityInfo;
        RuntimeInfo runtime = unityInfo.RuntimeInfo;
        FeaturesInfo features = unityInfo.FeaturesInfo;
        GraphicsInfo graphics = unityInfo.GraphicsInfo;

        // ダウンロードする時に実行するイベントを設定
        NoaInformation.OnDownload += (string filename, string jsonData) =>
        {
            Debug.Log($"Information download. Filename: {filename}");
            // ローカルにダウンロードを許可する場合はtrueを返す
            // ローカルにダウンロードを拒否する場合はfalseを返す
            return true;
        };

#endif
    }
}