AssetBundleGraph.AssetBundleGraphEditorWindow.GetDragAndDropAcceptableScriptType C# (CSharp) Method

GetDragAndDropAcceptableScriptType() private method

private GetDragAndDropAcceptableScriptType ( Type type ) : Type
type System.Type
return System.Type
        private Type GetDragAndDropAcceptableScriptType(Type type)
        {
            if (typeof(IPrefabBuilder).IsAssignableFrom(type) && !type.IsInterface && PrefabBuilderUtility.HasValidCustomPrefabBuilderAttribute(type)) {
                return typeof(IPrefabBuilder);
            }
            if (typeof(IModifier).IsAssignableFrom(type) && !type.IsInterface && ModifierUtility.HasValidCustomModifierAttribute(type)) {
                return typeof(IModifier);
            }

            return null;
        }