MyObjectReceive.cs 385 B

12345678910111213
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class MyObjectReceive : MonoBehaviour
  5. {
  6. // 在Android中选择图片后,Unity中调用该方法接收选择的图片路径
  7. public void ReceiveImagePath(string imagePath)
  8. {
  9. // 在这里处理选择的图片路径
  10. Debug.Log("Selected image path: " + imagePath);
  11. }
  12. }