예제 #1
0
        public ConstellationScript GetConstellationByName(string scriptName)
        {
            var allConstellations = EditorUtils.GetAllInstances <ConstellationScript>();

            foreach (var constellation in allConstellations)
            {
                if (constellation.name == scriptName)
                {
                    return((ConstellationScript)AssetDatabase.LoadAssetAtPath(AssetDatabase.GetAssetPath(constellation), typeof(ConstellationScript)));;
                }
            }
            return(null);
        }
예제 #2
0
 public ConstellationScript[] GetAllScriptsInProject()
 {
     return(EditorUtils.GetAllInstances <ConstellationScript> ());
 }
 public ConstellationBehaviourScript[] SearchAllConstellationBehaviourScriptsInProject()
 {
     return(EditorUtils.GetAllInstances <ConstellationBehaviourScript>());
 }
 public ConstellationStaticNodeScript[] SearchAllConstellationNodeScriptsInProject()
 {
     return(EditorUtils.GetAllInstances <ConstellationStaticNodeScript>());
 }