UnityEngine.Resources.LoadAssetAtPath C# (CSharp) Method

LoadAssetAtPath() public static method

public static LoadAssetAtPath ( string assetPath, Type type ) : System.Object
assetPath string
type System.Type
return System.Object
		public static System.Object LoadAssetAtPath(string assetPath, Type type){}
		public static void UnloadAsset(System.Object assetToUnload){}

Usage Example

コード例 #1
0
 public static T LoadAssetAtPath <T>(string assetPath) where T : Object
 {
     return((T)((object)Resources.LoadAssetAtPath(assetPath, typeof(T))));
 }