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