Skip to content

Repository files navigation

Unity Native Toolkit (Unity 6)

  • A toolkit that provides native features for Unity 6+.
  • The package includes native plugins and sample scenes for Android/iOS/Windows/macOS, and exposes native features such as dialogs, notifications, sharing, and clipboard access via singleton APIs per platform.
  • Editor windows help integrate native libraries and Gradle/Xcode settings, streamlining post-build setup.

Other languages:

Version

  • 1.11.0

Supported OS Versions

  • Android 12+
  • iOS 18+
  • Windows 11+
  • macOS 15+

Features

Android

  • Dialog features
    • Basic dialog
    • Confirmation dialog
    • Single choice dialog
    • Multi choice dialog
    • Text input dialog
    • Login dialog
  • Notification features
    • Standard notifications (show / update / cancel)
    • Scheduled notifications (schedule / status / cancel)
    • Action notifications
    • Full-screen notifications
    • DecoratedCustomView notifications
    • Progress notifications (Foreground Service)
  • Share features
    • Share text / URL
    • Share image / multiple images
    • Share file / multiple files
    • Custom Chooser actions (API 34+)
    • Rich preview
    • Direct Share target registration
    • Share with callback
    • Cancel pending callback
  • Clipboard features
    • Copy plain text / HTML text / URI / multiple text
    • Sensitive-content preview suppression (Android 13+)
    • Read clipboard content / check for a clip / get metadata without touching the clip body
    • Observe clipboard changes
    • Game use cases: invite codes, pasting a code, copying a screenshot

iOS

  • Dialog features
    • Basic dialog
    • Confirmation dialog
    • Destructive dialog
    • Action sheet
    • Text input dialog
    • Login dialog
  • Notification features
    • Request permission / check authorization status / open notification settings
    • Immediate notifications (including attachment sample)
    • Scheduled notifications (time interval / calendar / location)
    • Update / cancel / remove delivered / fetch state
    • Badge count management
    • Category registration / actions / text input actions
  • Share features
    • Share text / URL / URL with preview
    • Share image / multiple images
    • Share file / multiple files
    • Share text and URL together
    • Share with subject
    • Exclude specific activities from the share sheet
  • Clipboard features
    • Copy plain text / HTML text / URL / image file / image data / color / custom data
    • Copy multiple text items and multi-representation items
    • Copy options: local only and expiration
    • Append items without replacing the content
    • Read items, read raw data by type, and take a snapshot without reading the content
    • Load an item as text, URL, image, or file, and cancel running loads
    • Detect data patterns and detected values in the pasteboard text
    • Named and unique pasteboards: create, use, and remove
    • Observe clipboard changes and check for a change on foreground return

Windows

  • Dialog features
    • Basic dialog
    • File picker dialog
    • Multi-file picker dialog
    • Folder picker dialog
    • Multi-folder picker dialog
    • Save file dialog
  • Notification features
    • Immediate notifications
    • Scheduled notifications
    • Cancel scheduled notifications
    • Progress-bar notifications
    • Remove notifications by tag or remove all
    • Query notification permission setting
    • Open system notification settings
    • Notification activation events (including cold-start activation)
  • Clipboard features
    • Copy plain text / HTML / files / image / custom format
    • Copy several formats in one write
    • Exclude a copy from clipboard history, from the cloud clipboard, or from both
    • Paste plain text / HTML / files / image / custom format
    • Inspect the available formats, the preferred one, and whether one is present
    • Deferred rendering: hand over a provider per format and build the bytes on demand
    • Clipboard history: read, restore, delete, clear unpinned, and cancel a request
    • Clipboard and history change events

macOS

  • Dialog features

    • Basic dialog
    • File picker dialog
    • Multi-file picker dialog
    • Folder picker dialog
    • Multi-folder picker dialog
    • Save file dialog
  • Notification features

    • Request permission / check authorization status / open system notification settings
    • Immediate notifications
    • Scheduled notifications (time interval / calendar)
    • Update / cancel / remove delivered notifications
    • Fetch scheduled and delivered notification lists
    • Badge count management
    • Category registration / actions / text input actions
  • Share features

    • Share text / URL
    • Share image / multiple images
    • Share file / multiple files
    • Share text and URL together
    • Share excluding services
    • Share via a named service (e.g. Mail)
  • Clipboard features

    • Copy plain text / HTML / URL / custom data
    • Copy multiple items and multiple representations
    • Append to the clipboard with ownership
    • Read the clipboard, read one type, and take a snapshot without reading payloads
    • Detect patterns, values and metadata (macOS 15.4 or later)
    • Named and unique pasteboards
    • Observe clipboard changes and check for a change on foreground return
    • Local-only copies that stay off Universal Clipboard

Installation

Samples

  • Open Unity 6.
  • Window -> Package Manager.
  • Unity Package Manager -> Native Toolkit -> Samples -> Import.
  • Tools -> Native Toolkit -> Example.

Detailed Documentation

Native Toolkit

  • Native Toolkit is a unified toolkit for platform-native features.
  • It includes native plugins and samples for Android / iOS / Windows / macOS, exposing native features such as dialogs, notifications, and sharing via singleton APIs per platform.
  • Repository: https://github.com/kimjh4941/native-toolkit

License

Apache License 2.0. See LICENSE.

About

A toolkit that provides native features for Unity 6+.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages