x

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"

How can I reference UFastNoise object?

The plugin FastNoise found here seems that I should be able to create an object like here in it's non UE4 version. So I created a UProperty UFastNoise* myNoise; Then in .cpp I created myNoise = CreateDefaultSubobject(TEXT("Noise")); I've also added "UnrealFastNoisePlugin" to my build.cs. When I build I get the error

error LNK2019: unresolved external symbol "private: static class UClass __cdecl UFastNoise::GetPrivateStaticClass(wchar_t const )" (?GetPrivateStaticClass@UFastNoise@@CAPEAVUClass@@PEB_W@Z) referenced in function "public: class UFastNoise * __cdecl UObject::CreateDefaultSubobject(class FName,bool)" (??$CreateDefaultSubobject@VUFastNoise@@@UObject@@QEAAPEAVUFastNoise@@VFName@@_N@Z)

Product Version: UE 4.13
Tags:
more ▼

asked Sep 12 '16 at 05:19 PM in C++ Programming

avatar image

Thumper
966 143 150 390

avatar image Thumper Sep 13 '16 at 02:55 PM

I'm trying to use this method

 UFUNCTION(BlueprintPure, Category = "UnrealFastNoise")
     static UUFNNoiseGenerator* CreateFractalNoiseGenerator(UObject* outer, EFractalNoiseType noiseType, int32 seed = 12345, float frequency = 0.1f, float fractalGain = 0.5f, EInterp interpolation = EInterp::InterpLinear, EFractalType fractalType = EFractalType::Billow, int32 octaves = 4, float lacunarity = 2.0f, EPositionWarpType positionWarpType = EPositionWarpType::None, float positionWarpAmplitude = 30.0f);

It returns a UUFNoiseGenerator*. I keep getting Unresolved External sybol

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

1 answer: sort voted first

I added UNREALFASTNOISEPLUGIN_API to the UCLASS macro for all the header files in the plugin. This solved my problem

more ▼

answered Sep 13 '16 at 03:30 PM

avatar image

Thumper
966 143 150 390

(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