Returns an IAnimatableProperty<(Of <(<'T>)>)> that can be used to animate this GameProperty<(Of <(<'T>)>)>.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.0.0.0 (1.0.1.9459)

Syntax

C#
public IAnimatableProperty<T> AsAnimatable()
Visual Basic
Public Function AsAnimatable As IAnimatableProperty(Of T)
Visual C++
public:
IAnimatableProperty<T>^ AsAnimatable()

Return Value

An IAnimatableProperty<(Of <(<'T>)>)> instance that animates this game object property.

Remarks

If this method is called more than once on the same game object property, it always returns the same IAnimatableProperty<(Of <(<'T>)>)> instance and the IAnimatableProperty<(Of <(<'T>)>)> instances are kept alive by the game object. Only if the game object property is removed from a game object (using e.g. Remove(Int32)), the IAnimatableProperty<(Of <(<'T>)>)> instance is removed too, and the next call of AsAnimatable()()()() will return a new IAnimatableProperty<(Of <(<'T>)>)> instance.

See Also