AssetBundleGraph.PrefabBuilderUtility.HasValidCustomPrefabBuilderAttribute C# (CSharp) Method

HasValidCustomPrefabBuilderAttribute() public static method

public static HasValidCustomPrefabBuilderAttribute ( Type t ) : bool
t System.Type
return bool
        public static bool HasValidCustomPrefabBuilderAttribute(Type t)
        {
            CustomPrefabBuilder attr =
                t.GetCustomAttributes(typeof(CustomPrefabBuilder), false).FirstOrDefault() as CustomPrefabBuilder;
            return attr != null && !string.IsNullOrEmpty(attr.Name);
        }