-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from AkiKurisu/dev
Merge Dev 1.1.1 features and bug fix
- Loading branch information
Showing
24 changed files
with
1,106 additions
and
779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Animations | ||
|
||
Create dynamic animation sequence and cutscene from script based on Playables. | ||
|
||
## Features | ||
|
||
- Crossfade multi `RuntimeAnimatorController` and `AnimationClip`. | ||
|
||
## AnimationProxy Example | ||
|
||
```C# | ||
public class MontageExample : MonoBehaviour | ||
{ | ||
public Animator animator; | ||
private AnimationProxy animationProxy; | ||
public RuntimeAnimatorController controllerA; | ||
public RuntimeAnimatorController controllerB; | ||
private IEnumerator Start() | ||
{ | ||
animationProxy = new AnimationProxy(animator); | ||
animationProxy.LoadAnimator(controllerA, 0.5f); /* Crossfade animator to controllerA in 0.5s */ | ||
yield return new WaitForSeconds(1f); | ||
animationProxy.LoadAnimator(controllerB, 0.5f); /* Crossfade controllerA to controllerB in 0.5s */ | ||
yield return new WaitForSeconds(1f); | ||
chaAnimationProxy.Stop(0.5f); /* Crossfade controllerB to animator in 0.5s */ | ||
} | ||
} | ||
``` | ||
|
||
## SequenceBuilder Example | ||
|
||
```C# | ||
public class SequenceExample : MonoBehaviour | ||
{ | ||
public Animator animator; | ||
private AnimationProxy animationProxy; | ||
public AnimationClip[] clips; | ||
private void Start() | ||
{ | ||
animationProxy = new AnimationProxy(animator); | ||
using var builder = chaAnimationProxy.CreateSequenceBuilder(); | ||
foreach (var clip in clips) | ||
{ | ||
builder.Append(clip, clip.length * 3 /* Play 3 loop */, 0.25f /* BlendIn duration */); | ||
} | ||
builder.SetBlendOut(0.5f); | ||
builder.Build().Run(); | ||
} | ||
} | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Scheduler | ||
# Schedulers | ||
|
||
Zero allocation timer/frame counter. | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
namespace Kurisu.Framework.Events | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.