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