com.stansassets.android
v1.0.5
Published
Android plugins Dev Kit for Unity
Downloads
349
Readme
Android plugins Dev Kit for Unity
At Stan's Assets, we are making android native plugins for Unity for quite a while already. Check out our most popular Android Native Pro and Ultimate Mobile Pro plugins for the Android platfrom.
What problems are we solving?
When Unity developer is trying to make an Android Native plugin he will face the same well-known problems and the goal for this product is to provide solutions and describe best particles for the most common issues you might have while working on your very own Android Native plugin for Unity. Let us know if you need some specific features or you feel like something is missing in this package.
- Handle Android Plugin's Callback in Unity3d without SendUnityMessage.
- Send Texture2D from Unity the native code.
- Send image from the native code to Unity.
- AndroidLogger Utility.
Install from NPM
- Navigate to the
Packages
directory of your project. - Adjust the project manifest file
manifest.json
in a text editor. - Ensure
https://registry.npmjs.org/
is part ofscopedRegistries
.- Ensure
com.stansassets
is part ofscopes
. - Add
com.stansassets.android
to thedependencies
, stating the latest version.
- Ensure
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 which is currently .
{
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.stansassets"
]
}
],
"dependencies": {
"com.stansassets.android": "X.Y.Z",
...
}
}
- Switch back to the Unity software and wait for it to finish importing the added package.
Install from OpenUPM
- Install openupm-cli
npm install -g openupm-cli
oryarn global add openupm-cli
- Enter your unity project folder
cd <YOUR_UNITY_PROJECT_FOLDER>
- Install package
openupm add com.stansassets.android