Unity logo
Cancel
장바구니
애플리케이션
Sell Assets

평점 만점의 리뷰가 11,000개 이상

8만 5천명 이상의 리뷰

10만명 이상의 포럼 멤버가 선호하는 에셋

유니티에서 모더레이팅하는 모든 에셋

도구
입출력 관리
1/1
NOTE: In Unity 2019, Windows Universal Platform builds use IL2CPP (not .NET) and can access the usual System.IO classes, rendering UnifiedIO obsolete unless you want to benefit from its convenience methods. UnifiedIO is still useful if you use an older Unity version with .NET builds.

Have you tried to build your game for the Windows Store and got dozens of errors with non-existent IO classes and methods? Don't want to write platform-specific code and deal with async calls and new syntax? Well, don't!

UnifiedIO is a library with common methods to operate on files/folders in Application.persistentDataPath, i.e. the data folder reserved for your game.

You can call a UnifiedIO method and expect it to compile and work on Windows, Mac OS X, Linux, Blackberry, Android, iOS, Windows Phone and Windows Store Apps (Windows 8, 8.1, 10, Universal) without any extra coding.

Just add UnifiedIO to your project and start using its methods! You can also use it to cover only IO for Windows Store builds and retain your existing code, if you wish. You can also change its working directory to a custom one for each platform, if you have more advanced requirements.

What follows is a list of UnifiedIO methods (documentation here):

UnifiedIO.Directory class:

bool Exists(string path)
void Create(string path)
void Rename(string path, string newName)
void Move(string path, string destinationPath)
void Copy(string path, string destinationPath)
void MoveInside(string path, string destinationPath)
void CopyInside(string path, string destinationPath)
void Delete(string path)
void DeleteContents(string path)
string[] GetFiles(string path, string searchPattern, SearchOption searchOption)
string[] GetDirectories(string path, string searchPattern, SearchOption searchOption)

UnifiedIO.File class:

bool Exists(string path)
void CreateEmpty(string path)
void Rename(string path, string newName)
void Move(string path, string destinationPath)
void Copy(string path, string destinationPath)
void MoveInside(string path, string destinationPath)
void CopyInside(string path, string destinationPath)
void Delete(string path)
Stream GetReadStream(string path)
Stream GetWriteStream(string path)
Stream GetAppendStream(string path)
byte[] ReadBytes(string path, int position = 0, int nBytes = 0)
void WriteBytes(string path, byte[] content)
void WriteBytes(string path, byte[] content, int position)
void AppendBytes(string path, byte[] content)
string ReadText(string path)
void WriteText(string path, string content)
void AppendText(string path, string content)
IList<string> ReadLines(string path)
void WriteLines(string path, IEnumerable<string> content)
void AppendLines(string path, IEnumerable<string> content)

UnifiedIO supports Unity version 4.2.0 onwards (Free and Pro), including Unity 5, and is programmed in C#. If you use UnityScript, you can still use UnifiedIO, but please read the documentation for details.

All methods were consistently unit-tested, though I'd love to hear from you if you've found a bug or have suggestions. Contact me here or in the forum. Leave a review if you can! Good or bad; developers need feedback! :)

Documentation

Unity Forum Thread

UnifiedIO: Cross-Platform IO

(19개)
235 users have favourite this asset
(235)
$25
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
라이선스
파일 크기
153.2 KB
최신 버전
2.2.3
최신 릴리스 날짜
2018년 3월 8일
원본 Unity 버전
4.2.0
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
언어
어필리에이트 프로그램
멤버십링크 생성기어필리에이트 ID
Feedback
파트너 프로그램
협력사
USD
EUR
Copyright © 2025 Unity Technologies
모든 가격은 부가가치세를 제외한 금액입니다.
USD
EUR