Foundation Library
Foundation Library is a free open source product that contains lots of useful APIs, Utilities and Extension methods. We do not provide any articles or tutorials for these plugins. But we do try to keep every public API documented and self-explanatory.
API Reference
Quick links to explore the library:
Recommended way to install
- 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 of scopedRegistries
.
- Ensure
com.stansassets
is part of scopes
. - Add
com.stansassets.foundation
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 which is currently [![Release][Version-Release]][Releases].
{
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.stansasset"
]
}
],
"dependencies": {
"com.stansassets.foundation": "X.Y.Z",
...
}
}
- Switch back to the Unity software and wait for it to finish importing the added package.
Fast way to install
Yoy can also install this package a Git URL. To load a package from a Git URL:
- Click the add + button in the status bar.
- The options for adding packages appear.
- Select Add package from git URL from the add menu. A text box and an Add button appear.
- Enter the
https://github.com/StansAssets/com.stansassets.foundation.git
Git URL in the text box and click Add. - You may also install a psesific package version by using the URL with the specified version.
https://github.com/StansAssets/com.stansassets.foundation.git#X.Y.X
- Please note that the version
X.Y.Z
stated here is to be replaced with the version you would like to get. - You can find all the avaliable releases here.
- The latest avaliable release version is
For more information about what protocols Unity supports, see Git URLs.