UIAnimations
class in Doozy.Engine.UI.Animation / Inherits from ScriptableObject
Description
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
Static Properties
-
public static UIAnimations Instance – Returns a reference to the UIAnimations asset
Public Variables
-
public UIAnimationsDatabase Show – Show animations databases
-
public UIAnimationsDatabase Hide – Hide animations databases
-
public UIAnimationsDatabase Loop – Loop animations databases
-
public UIAnimationsDatabase Punch – Punch animations databases
-
public UIAnimationsDatabase State – State animations databases
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~
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.