public static DATA FromBytes <DATA>(byte[] Source) where DATA : class, IData, new() { GameObject Load = Resource.LoadPrefabInstance("Group"); DataWrapper LoadComponent = Load.AddComponent <DataWrapper>(); BinaryDeserializer.LoadComponentContentsFromBytes(LoadComponent, null, Source); return(LoadComponent.Data as DATA); }