AnimationData
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
继承的方法
继承自类 java.lang.Object
对象
|
clone()
|
布尔值
|
|
无效
|
finalize()
|
final Class<?>
|
getClass()
|
整数
|
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
字符串
|
toString()
|
final void |
wait(long arg0、int arg1)
|
final void |
wait (long arg0)
|
final void |
wait()
|
公共方法
public abstract long
getDurationMs
()
public abstract String getName ()
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-09-26。
[null,null,["最后更新时间 (UTC):2022-09-26。"],[[["\u003cp\u003eAnimationData is a container for animation data, including a hierarchy of named values that change over time.\u003c/p\u003e\n"],["\u003cp\u003eModelAnimator controls AnimationData, and SkeletonNode exposes the hierarchy as Nodes.\u003c/p\u003e\n"],["\u003cp\u003eAnimationData is included within a ModelRenderable and has methods to get its duration and name.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides access to animation data and its properties, allowing for control and manipulation of animations in a 3D scene.\u003c/p\u003e\n"]]],["AnimationData is a container holding time-varying, named values within a hierarchy. It's used with ModelAnimator for control and SkeletonNode to represent the hierarchy as Nodes. AnimationData is included within a ModelRenderable. Key actions include retrieving the animation's duration in milliseconds using `getDurationMs()` and obtaining the animation's name with `getName()`. It also has an empty constructor: AnimationData(). The class inherits standard methods from the base java.lang.Object.\n"],null,["# AnimationData\n\npublic abstract class **AnimationData** \nOpaque container of animation data.\n\nAnimationData contains a hierarchy of named values which change over time. [ModelAnimator](/sceneform/reference/com/google/ar/sceneform/animation/ModelAnimator) can be used to control an AnimationData. [SkeletonNode](/sceneform/reference/com/google/ar/sceneform/SkeletonNode) can be used to expose the hierarchy as [Node](/sceneform/reference/com/google/ar/sceneform/Node)s.\n\n[AnimationData](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData) is packaged in a [ModelRenderable](/sceneform/reference/com/google/ar/sceneform/rendering/ModelRenderable). \n\n### Public Constructors\n\n|---|---------------------------------------------------------------------------------------------------------|\n| | [AnimationData](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData#AnimationData())() |\n\n### Public Methods\n\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract long | [getDurationMs](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData#getDurationMs())() Returns the duration of this [AnimationData](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData) in milliseconds. |\n| abstract [String](https://developer.android.com/reference/java/lang/String) | [getName](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData#getName())() Returns the name for this [AnimationData](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData). |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [Object](https://developer.android.com/reference/java/lang/Object) | clone() |\n| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object) arg0) |\n| void | finalize() |\n| final [Class](https://developer.android.com/reference/java/lang/Class)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](https://developer.android.com/reference/java/lang/String) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public\n**AnimationData**\n()\n\n\u003cbr /\u003e\n\nPublic Methods\n--------------\n\n#### public abstract long\n**getDurationMs**\n()\n\nReturns the duration of this [AnimationData](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData) in milliseconds. \n\n#### public abstract [String](https://developer.android.com/reference/java/lang/String)\n**getName**\n()\n\nReturns the name for this [AnimationData](/sceneform/reference/com/google/ar/sceneform/rendering/AnimationData)."]]