Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Custom Anim Blueprint Strange things happen here...

Hi Guys,

I've started recently trying to implement anim blueprints. I actually have a base template working and I'm now going to delve more into the details, but there are strange errors that occur if I change some things... and actually make the code more similar to the actual engine code... Which well I thought would be the best implementation.... Do you guys happen to know why this happens?

  • When overriding the toolTipText, category and others of the UAnimGraphNode_Base, if I use LOCTEXT_NAMESPACE and respective LOCKTEXT, the node won't appear in the anim graph. I can search but nothing appears. The moment I remove this and use the other code to generate the FText, the issue is solved. But using the LOCTEXT_NAMESPACE is the way to go in the source code of UE... :/

  • If I try to use UCLASS(MinimalAPI) it breaks everything and shows a lot of errors... Shouldn't this work directly?

  • UAnimGraphNode_Base constantly gives the warning of incomplete type is not allowed.

I leave my code below... maybe these are a lot of questions and I'm taking too much of your time... :S But any help to any of these topics would be more than welcome!

Thank you so much! Cheers


 #pragma once
 #include "Editor//AnimGraph//Classes//AnimGraphNode_Base.h"
 #include "MyClassAnimNode.h"
 #include "MyClassBehavNode.generated.h"
 class MYPROJECT_API UMyClassBehavNode : public UAnimGraphNode_Base {
     UPROPERTY(EditAnywhere, Category = Settings)
     FMyClassAnimNode Node;
     virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
     virtual FLinearColor GetNodeTitleColor() const override;
     virtual FText GetTooltipText() const override;
     virtual FString GetNodeCategory() const override;


 #include "MyProject.h"
 #include "Editor//AnimGraph//Private//AnimGraphPrivatePCH.h"
 #include "Editor//GraphEditor//Public//GraphEditorActions.h"
 #include "Editor//UnrealEd//Public//ScopedTransaction.h"
 #include "MyClassBehavNode.h"
 //#define LOCTEXT_NAMESPACE "A3Nodes"
 UMyClassBehavNode::UMyClassBehavNode(const FObjectInitializer& ObjectInitializer)
     : Super(ObjectInitializer)
 FText UMyClassBehavNode::GetNodeTitle(ENodeTitleType::Type TitleType) const
     //return LOCTEXT("Stuffs", "Stuffs 2");
     return FText::FromString(FString("Import Stuffs"));
 FString UMyClassBehavNode::GetNodeCategory() const
     return TEXT("Tools");
 FLinearColor UMyClassBehavNode::GetNodeTitleColor() const
     return FLinearColor(0.27f, 0.51f, 0.71f);
 FText UMyClassBehavNode::GetTooltipText() const
     //return LOCTEXT("Stuffs", "Stuffs 2");
     return FText::FromString(FString("Import Stuffs"));
Product Version: UE 4.13
more ▼

asked Nov 24 '16 at 09:38 PM in C++ Programming

avatar image

11 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question