View SystemView System
Home
Documentation
Home
Documentation
  • Introduction
  • Installation
  • GettingStarted
  • Fundamentals
  • ViewElement Transition
  • Visual Editor
  • LifeCycle Hook and Injection
  • HelpTools
  • TroubleShooting

ViewElement Transition

Animator

imatorViewElementTrasition

When showing or leaving, the ViewElement will trigger the nearby Animator to play an animation. The Animator must include animations with the state names: Show State Name, Loop State Name, and Leave State Name.

To quickly create these Animators and Animations, ViewSystem provides an automated generation tool. Go to the toolbar and navigate to MacacaGames > ViewSystem > ViewSystem Edit Helper.

ViewSystemEditHelper

Simply fill in Aniamtion File Path, Element Type, and Animation Name. Then, click "Create Animation File" to automatically generate the Animator and several animation files in the specified folder. After that, apply the generated content to the Animator component on the ViewElement.


Canvas Group Alpha

CanvasGroupAlphaViewElementTrasition

When showing or leaving, the ViewElement will adjust the CanvasGroup's alpha with tween.


Active Switch

ActiveSwitchViewElementTrasition

When showing or leaving, the ViewElement will set GameObject.activeSelf true when shown and false when leaving.


ViewElement Animation

ViewElementAnimationViewElementTrasition

ViewElementAnimation is a simple tool that helps animate a ViewElement. It can control the transform properties (position, rotation, scale) and the CanvasGroup (alpha) using tween animations.


Custom

CustomViewElementTrasition

When showing or leaving, the ViewElement will trigger the corresponding Unity Event.

Last Updated:
Contributors: oldman
Prev
Fundamentals
Next
Visual Editor