Advertisement
Guest User

AnimGraphNode_NameOfYourNode.h

a guest
Jan 9th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. // Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
  2.  
  3. #pragma once
  4.  
  5. #include "AnimNode_NameOfYourNode.h"
  6.  
  7. #include "AnimGraphDefinitions.h"
  8. #include "Kismet2/BlueprintEditorUtils.h"
  9.  
  10. #include "AnimGraphNode_NameOfYourNode.generated.h"
  11.  
  12. //Whole point of this is to be wrapper for node struct
  13. //  so it depends on it, and that node must compile first
  14. //  for type to be recognized
  15.  
  16. UCLASS(MinimalAPI, dependson=FAnimNode_NameOfYourNode)
  17. class UAnimGraphNode_NameOfYourNode : public UAnimGraphNode_Base
  18. {
  19.     GENERATED_UCLASS_BODY()
  20.  
  21.     UPROPERTY(EditAnywhere, Category=Settings)
  22.     FAnimNode_NameOfYourNode Node;
  23.  
  24. public:
  25.     // UEdGraphNode interface
  26.     virtual FString GetNodeTitle(ENodeTitleType::Type TitleType) const OVERRIDE;
  27.     virtual FLinearColor GetNodeTitleColor() const OVERRIDE;
  28.     virtual FString GetNodeCategory() const OVERRIDE;
  29.     // End of UEdGraphNode interface
  30.  
  31. protected:
  32.     virtual FString GetControllerDescription() const;
  33.    
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement