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"

CreateDefaultSubobject Name: None

If I start the engine I get a strange error

Fatal error: [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 3537] Illegal default subobject name: None ... UE4Editor_Metro2_6630!AEscalator::AEscalator() [d:\epic games\unreal projects\metro2\source\metro2\escalator.cpp:63] ...

Line 63 says (in a for loop) MeshStairComponents.Add(CreateDefaultSubobject(*FString("MeshStair" + i)));

So obviously the Name is not None, what am I doing wrong? :)

Product Version: UE 4.17
Tags:
more ▼

asked May 19 '18 at 09:42 AM in C++ Programming

avatar image

TheDestroyer313
5 1 1 5

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

1 answer: sort voted first

try TEXT("MeshStair")

also im kinda suprised it doesnt complaint about the char* + int (unless i isnt an int?)

more ▼

answered May 20 '18 at 11:36 AM

avatar image

92Rob
98 1 3 8

avatar image TheDestroyer313 May 20 '18 at 11:53 AM

I still don't know, what caused the problem, but now I rewrote the code usind NewObject into OnConstruction(), so I don't need a name :D Is it fine to use the same name for multiple objects, because Im creating multiple meshes in a for loop?

(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