Manual

UIAnimations

class in Doozy.Engine.UI.Animation / Inherits from ScriptableObject

Description

The UIAnimations class is the central animations database that knows about all of the other animation databases.

Each database type (Show, Hide, Loop, Punch, State) has its own UIAnimationsDatabase container, where all UIAnimationDatabase of a given type are referenced.

An UIAnimationsDatabase contains one or more UIAnimationDatabase references.
An UIAnimationDatabase contains one or more UIAnimationData references.
An UIAnimationData contains one UIAnimation
Gesture Listener

Static Properties

Public Variables

Public Methods

  • public UIAnimationDatabase CreateDatabase(AnimationType databaseType, string newPresetCategory, bool saveAssets = false) – Creates a new UIAnimationDatabase of the given type and preset category name. Returns a reference to the newly created UIAnimationDatabase

  • public ~Database~ Get(AnimationType databaseType) – Returns the global database for the selected database type (AnimationType)

  • public UIAnimationData Get(AnimationType databaseType, string databaseName, string animationName) – Iterates through all the databases of the given database type (AnimationType) to find the one that has the given database name, then looks for the animation name. If found, returns a reference to the corresponding UIAnimationData, else it returns null.

  • public UIAnimationDatabase Get(AnimationType databaseType, string databaseName) – Iterates through all the databases of the given database type (AnimationType) to find the one that has the given database name. If found, returns a reference to the corresponding UIAnimationDatabase, else it returns null.

  • public void Initialize() – Performs an initial check to make sure that all the ~UIAnimations.Database~ references are not null (if they are, it generates the missing ones). After the references have been validated, the databases are updated.

  • public void SearchForUnregisteredDatabases(bool saveAssets) – [Editor Only] Performs a deep search through the project for any unregistered UIAnimationDatabase asset files and adds them to the corresponding ~UIAnimations.Database~

  • public void SetDirty(bool saveAssets) – [Editor Only] Marks target object as dirty. (Only suitable for non-scene objects)

Static Methods

  • public static UIAnimation LoadPreset(AnimationType animationType, string presetCategory, string presetName) – Iterates through all the UIAnimationDatabase databases of the given database type (AnimationType) to find the one that has the given database name (preset category), then looks for the animation name (preset name). If found, returns a deep copy of the corresponding UIAnimation, else it returns null.