- Play animation by
Animancer
void PlayAnim(ClipTransition clip, Action _endAnim = null, float _durationFade = .2f, FadeMode mode = default)
void PauseClip(ClipTransition clip)
void StopClip(ClipTransition clip)
private HandleAnimancerComponent handleAnimancerComponent;
public ClipTransition animIdle;
public void PlayAnimIdle()
{
handleAnimancerComponent.PlayAnim(animIdle);
}
public void PauseAnimIde()
{
handleAnimancerComponent.PauseClip(animIdle);
}
public void PauseAllAnim()
{
handleAnimancerComponent.PauseAll();
}
public void StopIdle()
{
handleAnimancerComponent.StopClip(animIdle);
}
public void StopAllAnim()
{
handleAnimancerComponent.StopAll();
}
AnimatorSkeletonComponent
& AnimatorSkeletonUIComponent
void Initialize(bool reload = false)
void ChangeAnimationName(string animationName)
void FlipX(bool isFlipX = false)
void FlipY(bool isFlipY = false)
void ChangeDataAsset(SkeletonDataAsset dataAsset);
void AddAnimation(int trackIndex, string animationName, bool loop, float timeDelay = 0)
async UniTask<TrackEntry> PlayAnimation(int trackIndex, string animationName, bool loop = false, float speed = 1)
void RegisterEvent(string eventName, Action actionEvent = null)
SkinSkeletonComponent
& SkinSkeletonUIComponent
-
MixSkin
Add more skin to the current skin
void MixSkin(string mixSkinName)
void MixSkin(List<string> listMixSkinName)
-
MixNewSkin
Create a new skin then setup
void MixNewSkin(string mixSkinName)
void MixNewSkin(List<string> listMixSkinName)
void SetSkin(string skinName)
Buoyancy2DComponent
& BuoyancyComponent
- Support buoyancy in 2D and 3D
- Support appear when
OnEnable()
- Support loop zoom in out when
OnEnable()
- Support move by point
- Move on awake
- Stop Move
- Support rotate when awake
- Rotate along the x, y or z axis
- Reverse rotation
- Support get time remaining
-
InitTargetTime
after use
void InitTargetTime() // Use the value input from the inspector to init
void InitTargetTime(int year, int month, int day, int hour, int minute, int second)
TimeSpan GetTimeRemaining()
- Support this game object follow to the target game object
- Follow types including: SetPosition, Lerp, SmoothDamp
- Follow direction included: XYZ, XY, XZ, YZ, X, Y, Z