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"

Is it posible to use C++ USTRUCT in Data Table(Editor)

Hello i was wondering is there any way to use Ustruct that is in one of my classes as a structure for a data table. When i try to go back to editor create new data table - none of the USTRUCT I have created are exposed there to be used. Also The Usturct, I'm talking about uses also UENUM that are ( BlueprintType ), i guess i'll probably have to do that something about them as well. Anyway this is my struct:

 USTRUCT( BlueprintType )
 struct FESegmentSpawnInfo 
 {
     GENERATED_USTRUCT_BODY()
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "TestStruct")
     ESegmentForm Form;
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "TestStruct")
     ESegmentPowerType PowerType;
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "TestStruct")
     ESegmentRotation InitialRotation;
 
     
 };

Product Version: Not Selected
Tags:
more ▼

asked Nov 05 '15 at 03:16 PM in C++ Programming

avatar image

ExcelionSC
44 10 10 14

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Your struct need to be derrived from FTableRowBase in order to be made DataTable

https://docs.unrealengine.com/latest/INT/Gameplay/DataDriven/index.html

Data types are limited, you might consider using numbers insted of enums

It kind of sound you making nested struct, i think it needs to be outside class in order to work

more ▼

answered Nov 05 '15 at 04:55 PM

avatar image

Shadowriver
35.2k 921 166 1098

avatar image ExcelionSC Nov 05 '15 at 06:07 PM

Thanks, ill check that too

(comments are locked)
10|2000 characters needed characters left

Structs that are to be used with data tables must derive from FTableRowBase. If you do that, they should appear in the list.

more ▼

answered Nov 05 '15 at 04:53 PM

avatar image

Jamie Dale STAFF
7.4k 176 66 304

avatar image ExcelionSC Nov 05 '15 at 06:05 PM

Thanks ill look those up

(comments are locked)
10|2000 characters needed characters left
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