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"

Accessing Methods (eg GetHeight() ) of Class pointed at (eg UMediaTexture) fails?

Dear all,

I am new to C++ and it might be an easy question for you all professionals, but I am stuck somehow and are not moving forward anymore.

I would like to setup a blue print which takes a VideoTexture as Input, calculates the alpha based on chormakey calculations and returns as output the now change videoTexture.

So going step by step, I first setup the blueprint node like:

#include "ChromaKey.h"
#include "MediaTexture.h"

UMediaTexture* UChromaKey::CreateChromaKeyTexture(UMediaTexture* ChromaTexture) 
    uint32 VHeight = 0;
    uint32 VWidth = 0;
    // VHeight = ChromaTexture->GetHeight();
    // VWidth =  ChromaTexture->GetWidth();
    return ChromaTexture;

Which worked fine and the blueprint node shows up with the correct type of input / outputs. When removing the comments of VHeight = ... and Width = ...
I receive a compiler error saying: . Error C2039. "GetHeight" is not an element of "UMediaTexture"

My Header-File looks like:

#include "Kismet/BlueprintFunctionLibrary.h"
#include "MediaTexture.h"
#include "ChromaKey.generated.h"


 UFUNCTION(BlueprintPure, meta = (DisplayName = "ChromaKey Conversion", CompactNodeTitle = "ChromaKey", Keywords = "Converts ChromaKey Texture"), Category = Game)
        static class UMediaTexture* CreateChromaKeyTexture(class UMediaTexture* ChromaTexture);


In my Build-File I have included

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "RHI", "RenderCore", "ShaderCore", "MediaAssets", "Media"});

What am I missing here ?

Any idea is welcome..



[EDIT] No one any hint for me?

Product Version: UE 4.14
more ▼

asked Oct 12 '17 at 08:25 PM in C++ Programming

avatar image

3 2

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

1 answer: sort voted first

Figured it out:

Somehow the Header file showed up in the Visual Studio Explorer but when opening the file, MS states, that the file was not found. After I setup a new project using the unreal source code, it now compiles without error.

I dont know what I did wrong in my first setup - but I somehow corrupted the installation :-(.

more ▼

answered Oct 27 '17 at 08:48 PM

avatar image

3 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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