You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(distribution): library now requires Unity Package Manager to run
BREAKING CHANGE: You now must use Unity's Package Manager to install this package. See the `###
Installation` section in the README.md for full details.
@@ -56,30 +53,82 @@ public class AnimatorPlaybackExample : MonoBehaviour {
56
53
Note that the AnimatorPlayback objects are fully unit and runtime tested
57
54
due to their level of complexity.
58
55
59
-
### Features
56
+
####Features
60
57
61
58
* AnimatorPlayback objects to easily detect animation completion conditions
62
59
* Pre-built library on AnimatorBehavior(s) for complex animation playback
63
60
* Animator extensions that add missing functionality to Unity's Animator component
64
61
* Animator unit testing helper (for editor only tests)
65
62
* Unit tested
66
63
67
-
#### Requesting Features
64
+
### Installation
65
+
66
+
Unity Animator Helpers is used through [Unity's Package Manager](https://docs.unity3d.com/Manual/CustomPackages.html). In order to use it you'll need to add the following lines to your `Packages/manifest.json` file. After that you'll be able to visually control what specific version of Unity Animator Helpers you're using from the package manager window in Unity. This has to be done so your Unity editor can connect to NPM's package registry.
67
+
68
+
```json
69
+
{
70
+
"scopedRegistries": [
71
+
{
72
+
"name": "NPM",
73
+
"url": "https://registry.npmjs.org",
74
+
"scopes": [
75
+
"com.fluid"
76
+
]
77
+
}
78
+
],
79
+
"dependencies": {
80
+
"com.fluid.unity-animator-helpers": "2.0.0"
81
+
}
82
+
}
83
+
```
84
+
85
+
### Releases
68
86
69
-
Please file a GitHub [issue ticket](https://github.com/ashblue/unity-animator-helpers/issues) if you'd like to
70
-
request a feature.
87
+
Archives of specific versions and release notes are available on the [releases page](https://github.com/ashblue/unity-animator-helpers/releases).
88
+
89
+
#### Nightly Builds
90
+
91
+
To access nightly builds of the `develop` branch that are package manager friendly, you'll need to manually edit your `Packages/manifest.json` as so.
You can view the current [roadmap here](https://github.com/ashblue/unity-animator-helpers/projects/1).
101
+
Note that to get a newer nightly build you must delete this line and any related lock data in the manifest, let Unity rebuild, then add it back. As Unity locks the commit hash for Git urls as packages.
73
102
74
-
## Animator Behaviors
103
+
### Development Environment
104
+
105
+
If you wish to run to run the development environment you'll need to install the latest [node.js](https://nodejs.org/en/). Then run the following from the root once.
106
+
107
+
`npm install`
108
+
109
+
If you wish to create a build run `npm run build` from the root and it will populate the `dist` folder.
110
+
111
+
#### Making Commits
112
+
113
+
All commits should be made using [Commitizen](https://github.com/commitizen/cz-cli) (which is automatically installed when running `npm install`). Commits are automatically compiled to version numbers on release so this is very important. PRs that don't have Commitizen based commits will be rejected.
114
+
115
+
To make a commit type the following into a terminal from the root
116
+
117
+
```bash
118
+
npm run commit
119
+
```
120
+
121
+
## Other Helper Libraries
122
+
123
+
### Animator Behaviors
75
124
76
125
There are several animator helper scripts to assist you with Animator Behavior(s).
77
126
These are aimed at allowing you to interact with the Animator without having to write
78
127
additional scripts to tweak variables and playback.
79
128
80
129

81
130
82
-
### Available Helpers
131
+
####Available Helpers
83
132
84
133
Here is a brief list of helpers. New ones will be added as the repo is updated over time.
85
134
@@ -94,7 +143,7 @@ Here is a brief list of helpers. New ones will be added as the repo is updated o
94
143
95
144
See documentation on methods (in code) for complete details.
96
145
97
-
## Animator Extensions
146
+
###Animator Extensions
98
147
99
148
Unity Animator Helpers extends the pre-existing functionality of Unity3D's built in `Animator` component with static
100
149
extensions. This doesn't hurt or break any existing functionality. For example you could do the following to check if
@@ -114,7 +163,7 @@ public class AnimatorExtensionExample : MonoBehaviour {
114
163
}
115
164
```
116
165
117
-
### Available Animator extensions
166
+
####Available Animator extensions
118
167
119
168
* HasParameter(name)
120
169
* HasBool(name)
@@ -131,7 +180,7 @@ You may need to call `AnimatorHelperRuntime.Instance.Cache(Animator)` on `Start`
131
180
have over 300 parameters. Please note that your `AnimatorController` object (what you pass into the Animator via
132
181
inspector) must be uniquely named in order for the caching to work correctly.
133
182
134
-
## Animator Unit Test Helper
183
+
###Animator Unit Test Helper
135
184
136
185
This library provides an `AnimatorStub` (editor only) class that makes testing animations via pure code super simple.
137
186
All you need to do is the following.
@@ -169,3 +218,7 @@ public class TestAnimatorStub {
0 commit comments