FindObjectsOfTypeIncludingAssets() public static method

public static FindObjectsOfTypeIncludingAssets ( Type type ) : Object[]
type Type
return Object[]
コード例 #1
0
        public static T GetSingletonIncludingAssets <T> ()
        {
            object obj = null;

            if (!singletons.TryGetValue(typeof(T), out obj))
            {
                obj = GetSingletonIncludingAssets <T>(Object.FindObjectsOfTypeIncludingAssets(typeof(T)));
            }
            return((T)obj);
        }