View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2019.4.16 or later
- Package size
- 345 KB
- Files
- 27
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $9.99 on
Keywords
DirectConvertor
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 2
DirectConvertor screenshot 1
About this asset
Direct conversions are alternative to serialisation. Two formats are used:
- text format, which is most representative. Class fields are converted into text and separated by indents (\t) and line wraps (\n);
- binary, wich is most economical. Class fields are converted into bytes sequence.
Results can be written in file immediately or produced as dump, which consequently can be written or sent via network.
Many approaches to serialization control use class attributes and reflection, which creates a lot of inconveniences and slows down the process. Direct conversions instead use a specially developed set of classes and interfaces, which allow customising flexibly which fields will be converted into integrated file or data dump.
Current version supports conversion of following frequently used fields:
- Primitive types: string, int, float, bool;
- Specific types: Guid, Vector3, Transform;
- Hierarchical aggregation of objects, including Unity components (prefabs);
- Generalised lists List<> both with primitive types and with objects (including nested lists and dictionaries);
- Dictionaries Dictionary<,> with string or int as keys, and primitive types and objects (including nested lists and dictionaries) as values.
If necessary, new types can be added comparatively easily.
Guide and examples
From the publisher's Asset Store listing.