Esempio n. 1
0
 public static T[] FindObjectsOfTypeAll <T>() where T : Object
 {
     return(Resources.ConvertObjects <T>(Resources.FindObjectsOfTypeAll(typeof(T))));
 }
Esempio n. 2
0
 public static T[] LoadAll <T>(string path) where T : Object
 {
     return(Resources.ConvertObjects <T>(Resources.LoadAll(path, typeof(T))));
 }
Esempio n. 3
0
 public T[] LoadAssetWithSubAssets <T>(string name) where T : Object
 {
     return(Resources.ConvertObjects <T>(this.LoadAssetWithSubAssets(name, typeof(T))));
 }
Esempio n. 4
0
 public T[] LoadAllAssets <T>() where T : Object
 {
     return(Resources.ConvertObjects <T>(this.LoadAllAssets(typeof(T))));
 }
Esempio n. 5
0
 public static T[] FindObjectsOfType <T>(bool includeInactive) where T : Object
 {
     return(Resources.ConvertObjects <T>(FindObjectsOfType(typeof(T), includeInactive)));
 }
Esempio n. 6
0
 public static T[] FindObjectsOfType <T>() where T : Object
 {
     return(Resources.ConvertObjects <T>(FindObjectsOfType(typeof(T), false)));
 }
Esempio n. 7
0
 public static T[] FindObjectsOfType <T>() where T : UnityEngine.Object
 {
     return(Resources.ConvertObjects <T>(FindObjectsOfType(typeof(T))));
 }
Esempio n. 8
0
 public T[] LoadAllAssets <T>() where T : UnityEngine.Object =>
 Resources.ConvertObjects <T>(this.LoadAllAssets(typeof(T)));
Esempio n. 9
0
 public T[] LoadAssetWithSubAssets <T>(string name) where T : UnityEngine.Object =>
 Resources.ConvertObjects <T>(this.LoadAssetWithSubAssets(name, typeof(T)));