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 I can Add Struct to Custom Details Panel(Slate Layout)

Hi! I create a custom details panel and I have 2 questions:

  1. How to add structure slate to my custom panel in a vertical box?

  2. notice the Screen Name variable. This is a localized FText. But after sending the property to SProperty. The shell has no functionality for localization. How can this be corrected?

alt text alt text

Product Version: UE 4.20
Tags:
1.png (53.1 kB)
2.png (52.2 kB)
more ▼

asked Oct 29 '18 at 07:52 PM in C++ Programming

avatar image

Say1O
8 2 5

avatar image Shadowriver Oct 29 '18 at 08:52 PM

Can you explain question 1 more? Isn't "For Human Only" widget a struct property?

As for 2nd question, localization will only work if there any localization for the string, LOCTEXT only assigns id for string, if there no localization it will use fallback string you set in 2nd argument. But if you really want to turn localization off instead of LOCTEXT use FText::FromString(TEXT("Text here"))

avatar image Say1O Oct 29 '18 at 09:18 PM
  1. No, EQUIPMENT Struct in left Top on screen. (For Human Only is not struct)

  2. I wanna see it in my Slate variable "Screen Name". alt text Without Customization it's Work. Maybe I need something else instead of SProperty

alt text

3.png (1.4 kB)
123.jpg (87.6 kB)
(comments are locked)
10|2000 characters needed characters left

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