beatthat / transitions

Transitions are behaviours that start and then run to completion with an option to cancel. An example is something like a FadeIn for a UI panel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transitions are behaviours that start and then run to completion with an option to cancel. The most common example is something like a FadeIn for a UI panel. The standalone interfaces package allows other packages to interact with transitions without a dependency on any implementation.

TEMPLATE

...

Usage

See the tests in the Editor/ folder for each class for usage examples.

Install

From your unity project folder:

npm init
npm install TEMPLATE --save
echo Assets/packages >> .gitignore
echo Assets/packages.meta >> .gitignore

The package and all its dependencies will be installed in your Assets/packages folder.

Development

Setup and run tests:

npm install
npm install ..
cd test
npm install
gulp

Remember that changes made to the test folder are not saved to the package unless they are copied back into the source folder.

To reinstall the files from the src folder, run npm install .. again.

Tests

All tests are wrapped in #if ... blocks to prevent test spam.

You can enable tests in: Player settings > Other Settings > Scripting Define Symbols

The test key for this package is: TEMPLATE_TESTS

About

Transitions are behaviours that start and then run to completion with an option to cancel. An example is something like a FadeIn for a UI panel.

License:MIT License


Languages

Language:C# 94.9%Language:JavaScript 5.1%