반응형
250x250
Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
관리 메뉴

폴크(FOLC)

Unity - Android 연동 ( Message to Flutter ) 본문

Unity/Unity 사용법

Unity - Android 연동 ( Message to Flutter )

folcjin 2021. 8. 28. 23:18
728x90
반응형

1. UnityMessageManager 이용
   > NativeAPI.cs + SingletonMonoBehaviour.cs + UnityMessageManager.cs

UnityMessageManager.zip
0.00MB

 

* 소스 코드 ( script.cs )
   > using System.Collections;
   > using System.Collections.Generic;
   > using UnityEngine;
   > using UnityEngine.XR;
   > using UnityEngine.XR.ARFoundation;
   > public class MessageTest : MonoBehaviour
   > {
   >     public UnityMessageManager unitymessageManager;
   >     void Awake()
   >     {
   >         unitymessageManager = gameObject.AddComponent(typeof(UnityMessageManager)) as UnityMessageManager;
   >     }
   >     void UserFunction()
   >     {
   >        // This method is used to send data to Flutter            
   >        unitymessageManager.SendMessageToFlutter( name );
   >     }
   > }

728x90
반응형
사업자 정보 표시
사업자 등록번호 : -- | TEL : --

'Unity > Unity 사용법' 카테고리의 다른 글

Unity - 버튼에 이미지 표시  (0) 2021.10.07
Unity S/W - 예외처리3  (0) 2021.08.17
Unity S/W - 예외처리2  (0) 2021.08.17
Unity S/W - 예외처리1  (0) 2021.08.06
Unity - Android 연동 ( AR 테스트 )  (0) 2021.07.09