Update readme: how to install with UPM
parent
582ac79437
commit
24d205e010
48
README.md
48
README.md
|
@ -57,6 +57,7 @@ Compares this "Baking mesh" approach with the conventional approach:
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br><br><br><br>
|
<br><br><br><br>
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
|
@ -64,21 +65,52 @@ Compares this "Baking mesh" approach with the conventional approach:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br><br><br><br>
|
||||||
|
## Install
|
||||||
|
|
||||||
|
#### Using UnityPackageManager (for Unity 2018.3+)
|
||||||
|
|
||||||
|
Find the manifest.json file in the Packages folder of your project and edit it to look like this:
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"com.coffee.ui-particle": "https://github.com/mob-sakai/ParticleEffectForUGUI.git#2.0.0",
|
||||||
|
...
|
||||||
|
},
|
||||||
|
}
|
||||||
|
```
|
||||||
|
To update the package, change `#2.0.0` to the target version.
|
||||||
|
|
||||||
|
#### Using .unitypackage file (for Unity 2018.2+)
|
||||||
|
|
||||||
|
Download `*.unitypackage` from [Releases](https://github.com/mob-sakai/ParticleEffectForUGUI/releases) and import the package into your Unity project.
|
||||||
|
Select `Assets > Import Package > Custom Package` from the menu.
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br><br><br><br>
|
||||||
|
## How to play demo
|
||||||
|
|
||||||
|
* Import `UIParticle_Demo.unitypackage` into your project.
|
||||||
|
* The demo unitypackage exists in `Assets/Assets/Coffee/UIExtensions/UIParticle` or `Packages/UI Particle`.
|
||||||
|
* Open UIParticle_Demo scene and play it.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br><br><br><br>
|
<br><br><br><br>
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
1. Download ParticleEffectForUGUI.unitypackage from [Releases](https://github.com/mob-sakai/ParticleEffectForUGUI/releases).
|
1. Add your particle effect to canvas.
|
||||||
2. Import the package into your Unity project. Select `Import Package > Custom Package` from the `Assets` menu.
|
2. (Option) If you want to mask particles, set a UI shader such as "UI/UIAdditive" to material for ParticleSystem.
|
||||||
3. Add your particle effect to canvas.
|
|
||||||
4. (Option) If you want to mask particles, set a UI shader such as "UI/UIAdditive" to material for ParticleSystem.
|
|
||||||

|

|
||||||
5. Add `UIParticle` component to root particle system of your effect from `Add Component` in inspector.
|
3. Add `UIParticle` component to root particle system of your effect from `Add Component` in inspector.
|
||||||

|

|
||||||
6. If your effect consists of multiple ParticleSystems, click "Fix".
|
4. If your effect consists of multiple ParticleSystems, click "Fix".
|
||||||

|

|
||||||
7. Adjust the Scale property to change the size of the effect.
|
5. Adjust the Scale property to change the size of the effect.
|
||||||

|

|
||||||
8. Enjoy!
|
6. Enjoy!
|
||||||
|
|
||||||
|
|
||||||
##### Requirement
|
##### Requirement
|
||||||
|
|
Loading…
Reference in New Issue