Class CameraAnimator
Defines a class with methods for animating position and target of ICameraController
Implements
android.animation.Animator.AnimatorListener
android.animation.ValueAnimator.AnimatorUpdateListener
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class CameraAnimator implements ICameraAnimator, Animator.AnimatorListener, ValueAnimator.AnimatorUpdateListener
Constructors
CameraAnimator()
Creates a new instance of CameraAnimator
Declaration
public CameraAnimator()
Fields
animator
Declaration
protected final ValueAnimator animator
Field Value
| Type | Description |
|---|---|
| android.animation.ValueAnimator |
Methods
animate(Vector3 position, Vector3 target, long duration)
Animates camera to specified position and target position with specified duration
Declaration
public void animate(Vector3 position, Vector3 target, long duration)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | |
| Vector3 | target | |
| long | duration |
attachTo(IServiceContainer services)
Declaration
public void attachTo(IServiceContainer services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceContainer | services |
cancelAnimation()
Cancels running animation
Declaration
public void cancelAnimation()
detach()
Declaration
public void detach()
isAnimating()
Gets the value indicating whether the animation is running
Declaration
public final boolean isAnimating()
Returns
| Type | Description |
|---|---|
| boolean | True is animations is running |
isAttached()
Declaration
public boolean isAttached()
Returns
| Type | Description |
|---|---|
| boolean |
onAnimationCancel(Animator animation)
Declaration
public void onAnimationCancel(Animator animation)
Parameters
| Type | Name | Description |
|---|---|---|
| android.animation.Animator | animation |
onAnimationEnd(Animator animation)
Declaration
public void onAnimationEnd(Animator animation)
Parameters
| Type | Name | Description |
|---|---|---|
| android.animation.Animator | animation |
onAnimationRepeat(Animator animation)
Declaration
public void onAnimationRepeat(Animator animation)
Parameters
| Type | Name | Description |
|---|---|---|
| android.animation.Animator | animation |
onAnimationStart(Animator animation)
Declaration
public void onAnimationStart(Animator animation)
Parameters
| Type | Name | Description |
|---|---|---|
| android.animation.Animator | animation |
onAnimationUpdate(ValueAnimator animation)
Declaration
public void onAnimationUpdate(ValueAnimator animation)
Parameters
| Type | Name | Description |
|---|---|---|
| android.animation.ValueAnimator | animation |
Implements
android.animation.Animator.AnimatorListener
android.animation.ValueAnimator.AnimatorUpdateListener