Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keijiro/TimelineParticleControl
An example of controlling particle system from timeline.
https://github.com/keijiro/TimelineParticleControl
particle timeline unity unity3d
Last synced: about 1 month ago
JSON representation
An example of controlling particle system from timeline.
- Host: GitHub
- URL: https://github.com/keijiro/TimelineParticleControl
- Owner: keijiro
- Created: 2017-12-04T10:01:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-03T02:27:10.000Z (about 3 years ago)
- Last Synced: 2024-08-02T13:26:13.819Z (5 months ago)
- Topics: particle, timeline, unity, unity3d
- Language: C#
- Homepage:
- Size: 1.37 MB
- Stars: 538
- Watchers: 29
- Forks: 51
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Timeline Particle System Control Example
========================================This is an example that shows how to control particle systems from a custom
track class.![gif](https://i.imgur.com/rJz6eWk.gif)
![gif](https://i.imgur.com/G6LnNFn.gif)Comparison with Control Track
-----------------------------The standard [Control Track] provides basic functionalities to control a
particle system within a timeline track. Although it's enough for most cases,
it has some small limitations.- It only provides on/off switch. An extra Animation Track is needed to control
particle parameters.
- The [Inherit Velocity] module doesn't work with the Control Track.
- It overrides the random seed number with the same value even if there are
multiple particle systems under the hierarchy.
- It uses the [fixed delta time] as a simulation interval. This is not ideal to
get smooth animation.The custom track class (`ParticleSystemControlTrack`) contained in this example
provides the following functionalities.- Playhead scrubbing support (not perfect; reset on rewinding).
- Emission rate control. It's controllable from both inline animation curves
and ease-in/out curves.
- Inherit Velocity module support.
- Transform snapping support.
- Random number override just happens with a single particle system.
- Animation with system delta time.[Control Track]: https://docs.unity3d.com/ScriptReference/Timeline.ControlTrack.html
[Inherit Velocity]: https://docs.unity3d.com/Manual/PartSysInheritVelocity.html
[fixed delta time]: https://docs.unity3d.com/ScriptReference/Time-fixedDeltaTime.htmlLicense
-------Copyright (c) 2017 Unity Technologies
This repository is to be treated as an example content of Unity; you can use
the code freely in your projects. Also see the [FAQ] about example contents.[FAQ]: https://unity3d.com/unity/faq#faq-37863