InstantiateByAsset.cs 342 B

123456789101112131415
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Threading.Tasks;
  5. using UnityEngine;
  6. public class InstantiateByAsset : MonoBehaviour
  7. {
  8. public string text;
  9. void Start()
  10. {
  11. Debug.Log($"[InstantiateByAsset] text:{text}, 这个脚本通过挂载到资源的方式实例化");
  12. }
  13. }