UAnimInstance::GetInstanceAssetPlayerTime
#include "Animation/AnimInstance.h"
Access: public
Specifiers: ENGINE_APIUFUNCTIONBlueprintPure
Description
Returns the current accumulated playback time in seconds for the specified asset player node. Used by the Blueprint AnimGetter system in transition rules.
Caveats & Gotchas
- • Like all AnimGetter functions, `BlueprintInternalUseOnly=true` — access via the auto-generated 'Current Time' getter node in the Blueprint graph, not by calling this function directly.
- • The returned time is the value from the end of the previous evaluation frame (double-buffered). It does not reflect time advanced during the current frame's update.
Signature
UFUNCTION(BlueprintPure, Category="Animation|Asset Player", meta = (DisplayName = "Current Time", BlueprintInternalUseOnly = "true", AnimGetter = "true", BlueprintThreadSafe))
ENGINE_API float GetInstanceAssetPlayerTime(int32 AssetPlayerIndex) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| AssetPlayerIndex | int32 | Index of the asset player node as resolved by the anim getter system. | — |
Return Type
float Example
Internal usage — illustrative only C++
// Engine calls this via the AnimGetter system.
// In Blueprint, use the auto-generated 'Current Time' getter node
// that appears next to each asset player in the state machine editor. See Also
Tags
Version History
Introduced in: 4.11
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?