NOA DebuggerNOA Debugger
  • v1.8.0
  • v1.7.1
  • 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
  • 日本語
  • English
  • v1.8.0
  • v1.7.1
  • 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
  • 日本語
  • English
  • NoaInformationOverlay

NoaInformationOverlay

Through this class, you can register and remove Information overlay groups.

Note: When using the functions provided by the NOA Debugger, always use the symbol definition of NOA_DEBUGGER.

Static Methods

APIDescription
RegisterGroup(groupName, layout, initialTargets, callbacks)Registers an overlay group. Specify the overlay identifier name, layout settings, a list of display targets, and callbacks as parameters. Callbacks are optional, but you can use them to configure more detailed behavior. For details, refer to NoaInformationOverlayCallbacks.
RemoveGroup(groupName)Removes the specified overlay group.
RemoveAllGroups()Removes all overlay groups.
IsGroupRegistered(groupName)Returns whether the specified overlay group is registered.
RefreshAll()Refreshes the display of all overlay groups at once.

NoaInformationOverlayTargetKey

Represents a single item displayed on the Information overlay via programmatic API.

You can use each item name in Information as a key as-is.

PropertyDescription
CategoryThe Information category type.
GroupNameThe data group name within each tab.
KeyThe item key name.

NoaInformationOverlayLayout

The layout settings for the overlay.

PropertyDescription
PositionSpecifies where to place the overlay.
ScaleSpecifies the overlay size in the range of 0.5 to 1.5.
AxisSpecifies the direction in which items shown on the overlay are arranged.

Sample Code

using System.Collections.Generic;
using UnityEngine;
#if NOA_DEBUGGER
using NoaDebugger;
#endif

public class Example
{
    void ExampleMethod()
    {
#if NOA_DEBUGGER
        // Layout
        var layoutCustom = new NoaInformationOverlayLayout
        {
            Position = NoaDebug.OverlayPosition.LowerRight,
            Scale = 1.1f,
            Axis = NoaInformation.OverlayAxis.Horizontal,
        };

        // Callbacks
        var callbacks = new ExampleCustomOverlayCallbacks();

        // Group identifier name
        string groupName = "SampleGroup";

        // Initial display targets
        var initialTargets = new List<NoaInformationOverlayTargetKey>
        {
            new(InformationTabType.App, "Build", "Company Name"),
            new(InformationTabType.App, "Build", "Product Name"),
            new(InformationTabType.Device, "Device", "Model"),
        };

        // Register an overlay group (with callbacks)
        NoaInformationOverlay.RegisterGroup(
            groupName: groupName,
            layout: layoutCustom,
            initialTargets: initialTargets,
            callbacks: callbacks);

        // Refresh all overlay groups at once
        NoaInformationOverlay.RefreshAll();

        // Check if an overlay group is registered
        bool isRegistered = NoaInformationOverlay.IsGroupRegistered(groupName);

        // Remove an overlay group
        NoaInformationOverlay.RemoveGroup(groupName);

        // Remove all overlay groups
        NoaInformationOverlay.RemoveAllGroups();
#endif
    }
}