コード例 #1
0
        public ConstellationScript GetConstellationByName(string scriptName)
        {
            var constellation = EditorUtils.GetInstanceByName <ConstellationScript> (scriptName);

            return((ConstellationScript)AssetDatabase.LoadAssetAtPath(AssetDatabase.GetAssetPath(constellation), typeof(ConstellationScript)));
        }
コード例 #2
0
 public ConstellationScript[] GetAllScriptsInProject()
 {
     return(EditorUtils.GetAllInstances <ConstellationScript> ());
 }