Version: 2023.2
언어: 한국어

MonoImporter.GetAllRuntimeMonoScripts

매뉴얼로 전환
public static MonoScript[] GetAllRuntimeMonoScripts ();

반환

MonoScript[] Returns an array of scripts.

설명

Gets an array of scripts that will be available at runtime.

Additional resources: AssetDatabase.FindAssets.

using UnityEngine;
using UnityEditor;

class Example { [MenuItem("Examples/Get Scripts Available at Runtime")] public static void GetScriptsAvailableAtRuntime() { foreach (var monoScript in MonoImporter.GetAllRuntimeMonoScripts()) { Debug.Log($"Class: {monoScript.GetClass()}, Name: {monoScript.name}"); } } }