Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Deficuet authored Dec 25, 2022
1 parent 9b1e4a9 commit f898ca9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,12 @@ So far the objects that can export data includes:
- Texture2D
- `decompressedImageData` - Image data after decoding. Can be used to create image directly.
- `image` - A BufferedImage created from `decompressedImageData`. **It is usually up-side-down**.
- MonoBehaviour
- `json` - Export its TypeTree as [JSONObject](https://stleary.github.io/JSON-java/index.html), could be `null`.
- `jsonString` - Export its TypeTree as `String`.
- TextAsset
- `text()` - The function used to export content in this object as `String`. A `Charset` can be passed as a parameter, by default it is `Charsets.UTF_8`.
- Shader
- `exportString` - Export as String. **Include** the Spir-V Shader data.
- All objects
- `typeTreeJson` - A [JSONObject](https://stleary.github.io/JSON-java/org/json/JSONObject.html) contains all the properties they have, including those properties that is not implemented yet. The json could be `null`.
## Example
Example for reading and saving an image from a Texture2D object.
```kotlin
Expand Down Expand Up @@ -140,6 +139,8 @@ fun main() {
}
```
## Changelog
- ### 2022.12.25
- Create Canvas object, tested on version 2018.4.34f1, not guaranteed to be stable on other versions.
- ### 2022.12.23
- Catch up on the newest version of AssetStudio. Try to optimize memory use, re-design some structures.
- ### 2022.02.20
Expand Down

0 comments on commit f898ca9

Please sign in to comment.