Unity logo
キャンセル
カート
アプリケーション
Sell Assets

11,000 種類を超える 5 つ星アセット

8.5 万人以上の顧客による評価

10 万人を超えるフォーラムメンバーが支持

すべてのアセットを Unity が審査済み

ホーム
ツール
ユーティリティ
1/10
Save and load in binary. And in real-time!
SRP との互換性
Unity のスクリプタブルレンダーパイプライン(SRP)は、C# スクリプトを使用してレンダリングを制御できる機能です。SRP は、ユニバーサルレンダーパイプライン(URP)と HD レンダーパイプライン(HDRP)を支えるテクノロジーです。
Unity のバージョンビルトインURPHDRP
6000.0.23f1
互換性がある
互換性がある
互換性がある
2022.3.29f1
互換性がある
互換性がある
互換性がある
詳細

🩵 Wishlist this asset so it can go on sale!


A replacement for BinaryFormatter to read and write the public fields and properties of class objects/scripts using BinaryReader and BinaryWriter.


Features

  • Supports most objects and collection types of any size and mix, such as a List<Dictionary<string, Vector3>>[,,,,,].
  • Can use public properties to safely save and load references like sprites, materials, addressables, or other component data.
  • Read and write real-time asynchronously or with coroutines.
  • Update data in existing GameObjects and ScriptableObjects by reading directly into them.
  • Files are compactly formatted in binary (1 and 0 bits), making them smaller than text-based formats like JSON.
  • Convert objects to a byte array and use with encryption or network transmission.
  • Optionally convert an object into a Base64 string.
  • Flip the bits of object data using a byte mask to make it less human-readable.
  • Can find and read the first occurrence of a single saved field or property.

Device Security

  • Uses Type safety to mitigate type confusion attacks.
  • Does not read or write fully qualified assembly names to prevent assembly loading attacks.
  • Only creates objects using their default constructor to avoid deserialization attacks.
  • Explicitly does not read or write known unsafe types to reduce information disclosure and remote code execution attacks.

File Integrity

  • Uses a CRC-32 hash to detect if data is corrupt or changed.
  • Writes as a temporary file first to avoid corruption while saving.
  • Locks resources in a thread-safe way with SemaphoreSlim and ConcurrentDictionary.

Debug Log

  • Messages show read and write data while playing inside Unity Editor.
  • Helpful warnings assist with a bug-free development.
  • Messages and warnings can be disabled and are not compiled with a final build.

Tutorial for saving in Unity Loady Dungeons:

https://youtu.be/cTE1s_JueTE?si=8pFfQbqRpzw0Pmeq

技術的な詳細

Supports class/script objects with the following member types:

  • Primitives = byte, sbyte, short, ushort, int, uint, long, ulong, bool, char, float, double, decimal.
  • Collections = Array, Dictionary, SortedList, SortedDictionary, ConcurrentDictionary, List, HashSet, ObservableCollection, Queue, Stack, LinkedList, SortedSet, ConcurrentBag, ConcurrentQueue, ConcurrentStack, BlockingCollection.
  • Generics = Tuple, ValueTuple, KeyValuePair.
  • Unity References = MonoBehaviour (script), GameObject, ScriptableObject.
  • Other = string, enum, Guid, TimeSpan, structs with public members (example: Vector3, Color, DateTime, Quaternion).
  • Polymorphic Collections = dictionary entries can be added for custom object types that need to be created different from their runtime type to support polymorphism.

Explicitly does not support the following unsafe types:

  • IntPtr, UIntPtr, Uri, WeakReference, HandleRef, GCHandle, MulticastDelegate.

If a public field or property in a class/script object is not supported, that member is skipped with a debug log warning, but all other supported members are still read or written.

BinaryFileIO : Real-time Save/Load

(評価数が不足しています)
4 users have favourite this asset
(4)
$39
シート
1
更新された価格と消費税/VAT はチェックアウト時に計算
払い戻しポリシー
このアセットは Unity アセットストアの払い戻しポリシーの対象です。詳細については、EULA のセクション 2.9.3 を参照してください。
以下で安全にチェックアウト:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
ライセンス
ファイルサイズ
494.1 KB
最新バージョン
1.2.0
最新リリース日
2025年1月13日
オリジナルの Unity バージョン
2022.3.29
高品質なアセット
11,000 種類を超える 5 つ星アセット
信頼がある
8.5 万人以上の顧客による評価
コミュニティが支持
10 万人以上のフォーラムメンバーが支持
Unity logo
言語選択
フィードバック
パートナープログラム
パートナー
USD
EUR
Copyright © 2025 Unity Technologies
全ての表示価格には消費税は含まれていません
USD
EUR