👨‍💻
MYTY
MYTY SDK
MYTY SDK
  • MYTY SDK
  • How to use MYTY SDK?
    • Create Unity Project
    • Import MYTY Kit
    • Import MYTY SDK
    • Build MYTY SDK
    • Create Scene
  • MYTY SDK Interface
    • Load Avatar
    • Select Avatar
    • Choose View Mode
    • Control Avatar (Mediapipe)
    • Control Avatar (ARKit)
  • For Web Application
    • Interacting with browser scripting
    • Integrate with React Project
  • React Example
    • Handle WebGL view & interaction
    • Choose Video Device for input
    • Handle Mediapipe Holistic
    • Capture & Record
  • For iOS Application
    • Interact with native iOS application
    • Integrate with Flutter Project
    • Trouble Shooting (Flutter Integration)
  • Flutter Example
    • Handle UnityWidget & interaction
    • Use ARKit Plugin
  • Avatar Registry(API)
    • Overview
    • Getting Started
    • Auth & Rate Limit
    • Legacy - v0
  • Resources
    • License Agreement
    • Version Note (SDK vs Kit)
    • Display Logo
Powered by GitBook
On this page
  • UnityWidget
  • UnityWidgetController
  1. Flutter Example

Handle UnityWidget & interaction

PreviousFlutter ExampleNextUse ARKit Plugin

Last updated 2 years ago

UnityWidget

After setting up FlutterUnityWidget in your Flutter Project, you can simply use UnityWidget by importing 'package:flutter_unity_widget/flutter_unity_widget.dart'. For details, refer to the example usage below.

UnityWidgetController

After setting up UnityWidget, you can get UnityWidgetController from onUnityCreated callback. By calling postMessage method of UnityWidgetController, you can send message to Unity. For details, refer to the example usage below.

Logomyty-sdk/myty_avatar_widget.dart at pre-release/dev · Off-Live/myty-sdkGitHub
Logomyty-sdk/unity_bloc.dart at pre-release/dev · Off-Live/myty-sdkGitHub