You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Added the abiity to tag and retrieve any anim graph node (similar to how we could reference linked anim graph nodes previously). Ported linked anim graph nodes to use the new system Added the ability to reference any anim graph node by tag (via a new custom node, spawnable from the context menu, with the appearance of an actor reference in a level blueprint) Added tag display and editing in the bottom-right of anim graph nodes Added new override point to SGraphNodeK2Var to allow for title widget parameters to be overriden by child classes #jira UE-126286 - Anim node functions: Add anim node references #rb Jurre.deBaare #ROBOMERGE-AUTHOR: thomas.sarkanen #ROBOMERGE-SOURCE: CL 17472894 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530) [CL 17472913 by thomas sarkanen in ue5-release-engine-test branch]
51 lines
1.5 KiB
C++
51 lines
1.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Layout/Visibility.h"
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
#include "SNodePanel.h"
|
|
#include "AnimationNodes/SAnimationGraphNode.h"
|
|
|
|
class SVerticalBox;
|
|
class UAnimGraphNode_Base;
|
|
|
|
class SGraphNodeSequencePlayer : public SAnimationGraphNode
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(SGraphNodeSequencePlayer){}
|
|
SLATE_END_ARGS()
|
|
|
|
// Reverse index of the debug slider widget
|
|
static const int32 DebugSliderSlotReverseIndex = 2;
|
|
|
|
void Construct(const FArguments& InArgs, UAnimGraphNode_Base* InNode);
|
|
|
|
// SNodePanel::SNode interface
|
|
virtual void GetNodeInfoPopups(FNodeInfoContext* Context, TArray<FGraphInformationPopupInfo>& Popups) const override;
|
|
// End of SNodePanel::SNode interface
|
|
|
|
// SGraphNode interface
|
|
virtual void UpdateGraphNode() override;
|
|
virtual void CreateBelowPinControls(TSharedPtr<SVerticalBox> MainBox) override;
|
|
// End of SGraphNode interface
|
|
|
|
protected:
|
|
/** Get the sequence player associated with this graph node */
|
|
struct FAnimNode_SequencePlayer* GetSequencePlayer() const;
|
|
EVisibility GetSliderVisibility() const;
|
|
float GetSequencePositionRatio() const;
|
|
void SetSequencePositionRatio(float NewRatio);
|
|
|
|
FText GetPositionTooltip() const;
|
|
|
|
bool GetSequencePositionInfo(float& Out_Position, float& Out_Length, int32& FrameCount) const;
|
|
|
|
// Invalidates the node's label if we are syncing based on graph context
|
|
void UpdateGraphSyncLabel();
|
|
|
|
// Cached name to display when sync groups are dynamic
|
|
FName CachedSyncGroupName;
|
|
};
|