NOA DebuggerNOA Debugger
  • v1.7.0
  • v1.6.1
  • v1.5.0
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.1
  • v1.0.0
Demo
Contact
Buy
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • v1.7.0
  • v1.6.1
  • v1.5.0
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.1
  • v1.0.0
Demo
Contact
Buy
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • NoaInformation

NoaInformation

Through this class, you can get the information of the Information function.

APIs

Static Methods

APIDescription
SetDownloadCallbacks(commonCallbacks, informationCallbacks)Configure download-related events by creating a custom class and passing it as an argument.
For detailed information about the arguments, refer to NoaDownloadCallbacks and NoaInformationDownloadCallbacks.

Static Properties

APIDescription
ApplicationInformationReturns the application information the tool retains.
System properties whose values can be changed on the UI can also be updated via the API.
For detailed information, please refer to Information.
DeviceInformationReturns the device information the tool retains.
OnCopiedAn event that executes when system items are copied to the clipboard.
It fires when the[Copy Copy] button in the Information tool is pressed.
OnSendAn event that executes when system items are sent.
It fires when the[Send Send] button in the Information tool is pressed.

Sample Code

using UnityEngine;
#if NOA_DEBUGGER
using NoaDebugger;
#endif

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

        // Get the application information.
        ApplicationInformation applicationInformation = NoaInformation.ApplicationInformation;
        BuildInformationGroup build = applicationInformation.Build;
        RuntimeInformationGroup runtime = applicationInformation.Runtime;
        ScreenInformationGroup screen = applicationInformation.Screen;
        GraphicsSettingsInformationGroup graphicsSettings = applicationInformation.GraphicsSettings;
        LoggingInformationGroup logging = applicationInformation.Logging;
        ApplicationOtherInformationGroup other = applicationInformation.ApplicationOther;

        // Update the value of mutable system properties.
        runtime.TimeScale = 2.0f;
        screen.TargetFrameRate = 60;
        graphicsSettings.QualityLevel = 5;
        logging.Enabled = true;

        // Get the device information.
        DeviceInformation deviceInformation = NoaInformation.DeviceInformation;
        DeviceGeneralInformationGroup deviceGeneral = deviceInformation.DeviceGeneral;
        OSInformationGroup os = deviceInformation.OS;
        ProcessorInformationGroup processor = deviceInformation.Processor;
        GraphicsDeviceInformationGroup graphicsDevice = deviceInformation.GraphicsDevice;
        SystemMemoryInformationGroup systemMemory = deviceInformation.SystemMemory;
        DisplayInformationGroup display = deviceInformation.Display;
        GraphicsSupportInformationGroup graphicsSupport = deviceInformation.GraphicsSupport;
        TextureFormatSupportInformationGroup textureFormatSupport = deviceInformation.TextureFormatSupport;
        FeatureSupportInformationGroup featureSupport = deviceInformation.FeatureSupport;
        NetworkInformationGroup network = deviceInformation.Network;
        SystemInformationGroup system = deviceInformation.System;
        InputInformationGroup input = deviceInformation.Input;

        // Set the events to be executed during download using a custom-defined class.
        var downloader = new ExampleDownloader();
        var informationDownloader = new ExampleInformationDownloader();
        NoaInformation.SetDownloadCallbacks(downloader, informationDownloader);
        
        // Set an event to be executed when system items are copied to the clipboard
        NoaInformation.OnCopied += (Dictionary<string,List<InformationGroup>> informationGroups, string clipboardText) => Debug.Log($"Information copied. Clipboard: {clipboardText}");

        // Set an event to be executed when system items are sent
        NoaInformation.OnSend += (Dictionary<string,List<InformationGroup>> informationGroups) => Debug.Log("Information sent.");

#endif
    }
}