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