https://github.com/ernsur/importables
Solution to ease the process of creating simple Scripted Importers.
https://github.com/ernsur/importables
asset-pipeline unity unity-editor unity3d unity3d-plugin
Last synced: 12 months ago
JSON representation
Solution to ease the process of creating simple Scripted Importers.
- Host: GitHub
- URL: https://github.com/ernsur/importables
- Owner: ErnSur
- Created: 2023-09-03T06:17:43.000Z (almost 3 years ago)
- Default Branch: upm
- Last Pushed: 2023-10-28T19:23:34.000Z (over 2 years ago)
- Last Synced: 2025-04-07T02:51:15.640Z (about 1 year ago)
- Topics: asset-pipeline, unity, unity-editor, unity3d, unity3d-plugin
- Language: C#
- Homepage:
- Size: 206 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README

# Importables
> Solution to ease the process of creating simple Scripted Importers.

## Goals achieved
- Easily create text assets in the project browser.
- Make it easy to create an asset importer that allows user to edit asset in the inspector and apply those changes to the text file.
- Create examples of simple Asset Importer implementations (e.g, JSON Importer, CSV Importer). See the samples.
- Create a JSON Importer/Serializer that allows deserializing JSON object/dictionary into unity serializable type. See JSON Importer samples.
- Create a `UnityEditor.ObjectPreview` to preview the file contents of text importers.
## Samples
See the _Samples~_ folder or Import package samples from the Unity Package Manager Window.
## API
| Class Name | Despription |
|----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `CreateTextAssetAction` | Utility method to create text file assets from menu items without the burden of managing project browser selection |
| `ScriptableObjectImporter` | Base Importer for one to one text file -> `ScriptableObject` conversion |
| `ScriptableObjectImporterEditor` | Base Importer Editor that allows for applying changes from Scriptable Object Editor to text file |
| `JsonSerializer` | Json Serializer that combines the features of Json.NET with `UnityEngine.Object` serialization of `UnityEngine.JsonUtility` |
| `EditorJsonSerializer` | Json Serializer that combines the features of Json.NET with `UnityEngine.Object` serialization of `UnityEditor.EditorJsonUtility` |
| `TextFilePreview` | `UnityEditor.ObjectPreview` to preview the text file contents |