Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stansassets/com.stansassets.mobile
Stans Assets Mobile
https://github.com/stansassets/com.stansassets.mobile
Last synced: about 1 month ago
JSON representation
Stans Assets Mobile
- Host: GitHub
- URL: https://github.com/stansassets/com.stansassets.mobile
- Owner: StansAssets
- License: mit
- Created: 2021-01-13T17:44:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T08:08:50.000Z (over 3 years ago)
- Last Synced: 2024-10-04T12:46:08.702Z (3 months ago)
- Language: Objective-C
- Size: 84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Stans Assets Mobile Project
The package is a little helper that makes communication between Unity and native platforms(iOS right now) easier and more convenient. It allows you to send and get a callback and transfer your data between unity and native code in a more convenient way, and efficient way.For example, if you have some image that you want to use in Unity and get from the iPhone gallery, you don't need to send all data as an array of char bytes to unity, you can just save this data into a buffer which this package provides, this will return a hash for it, and then you just can get this data by this hash where you want. Under the hood, it will get back data from the buffer, get a pointer to it and size, and then just send this pointer to Unity, where it'll create an array of bytes, fill it with data from the pointer, and then will return this data to you.
[![NPM Package](https://img.shields.io/npm/v/com.stansassets.mobile)](https://www.npmjs.com/package/com.stansassets.mobile)
[![Licence](https://img.shields.io/npm/l/com.stansassets.mobile)](https://github.com/StansAssets/com.stansassets.mobile/blob/main/LICENSE.md)
[![Issues](https://img.shields.io/github/issues/StansAssets/com.stansassets.mobile)](https://github.com/StansAssets/com.stansassets.mobile/issues)## Install from NPM
* Navigate to the `Packages` directory of your project.
* Adjust the [project manifest file](https://docs.unity3d.com/Manual/upm-manifestPrj.html) `manifest.json` in a text editor.
* Ensure `https://registry.npmjs.org/` is part of `scopedRegistries`.
* Ensure `com.stansassets` is part of `scopes`.
* Add `com.stansassets.mobile` to the `dependencies`, stating the latest version.A minimal example ends up looking like this. Please note that the version `X.Y.Z` stated here is to be replaced with [the latest released version](https://www.npmjs.com/package/com.stansassets.mobile) which is currently [![NPM Package](https://img.shields.io/npm/v/com.stansassets.mobile)](https://www.npmjs.com/package/com.stansassets.mobile).
```json
{
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.stansassets"
]
}
],
"dependencies": {
"com.stansassets.mobile": "X.Y.Z",
...
}
}
```
* Switch back to the Unity software and wait for it to finish importing the added package.