Class TMPAnimationDatabase
- Namespace
- TMPEffects.Databases.AnimationDatabase
- Assembly
- TMPEffects.dll
Stores TMPAnimation, TMPShowAnimation and TMPHideAnimation animations.
[CreateAssetMenu(fileName = "new TMPAnimationDatabase", menuName = "TMPEffects/Database/Animation Database", order = 0)]
public class TMPAnimationDatabase : TMPEffectDatabase<ITMPAnimation>, ITMPEffectDatabase<ITMPAnimation>, ITMPEffectDatabase, INotifyObjectChanged
- Inheritance
-
ObjectScriptableObjectTMPAnimationDatabase
- Implements
- Inherited Members
-
ScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Properties
BasicAnimationDatabase
The backing TMPBasicAnimationDatabase used.
public TMPBasicAnimationDatabase BasicAnimationDatabase { get; }
Property Value
HideAnimationDatabase
The backing TMPHideAnimationDatabase used.
public TMPHideAnimationDatabase HideAnimationDatabase { get; }
Property Value
ShowAnimationDatabase
The backing TMPShowAnimationDatabase used.
public TMPShowAnimationDatabase ShowAnimationDatabase { get; }
Property Value
Methods
ContainsEffect(string)
Check whether this database contains an animation associated with the given name.
public override bool ContainsEffect(string name)
Parameters
name
stringThe identifier of the animation.
Returns
- bool
true if this database contains an animation associated with the given name; false otherwise.
ContainsEffect(string, TMPAnimationType)
Check whether this database contains an animation associated with the given name.
public bool ContainsEffect(string name, TMPAnimationType type)
Parameters
name
stringThe identifier of the animation.
type
TMPAnimationTypeThe type of animation.
Returns
- bool
true if this database contains an animation associated with the given name; false otherwise.
GetEffect(string)
Get the animation associated with the given name.
public override ITMPAnimation GetEffect(string name)
Parameters
name
stringThe identifier of the animation.
Returns
- ITMPAnimation
The animation associated with the given name.
Exceptions
GetEffect(string, TMPAnimationType)
Get the animation associated with the given name.
public ITMPAnimation GetEffect(string name, TMPAnimationType type)
Parameters
name
stringThe identifier of the animation.
type
TMPAnimationTypeThe type of animation.
Returns
- ITMPAnimation
The animation associated with the given name.
Exceptions
OnValidate()
protected override void OnValidate()