コード例 #1
0
        static public int GetContentIdentity(UnityEngine.Object item)
        {
            unchecked
            {
                int hash = 17;

                hash = hash * 23 + item.GetAssetInfo().GetTimestamp().GetHashCodeEX();
                hash = hash * 23 + item.GetHashCodeEX();
                return(hash);
            }
        }
コード例 #2
0
        static public AssetType GetAssetType(this UnityEngine.Object item)
        {
            if (item.IsNotNull())
            {
                AssetInfo info = item.GetAssetInfo();

                if (info.IsInternalAsset())
                {
                    return(AssetType.Internal);
                }

                if (info.IsExternalAsset())
                {
                    return(AssetType.External);
                }
            }

            return(AssetType.None);
        }