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"

SpinBoxes don't work well for properties of DataTable rows

When adding a UPROPERTY to a struct that extends FTableRowBase (for use in a DataTable) which has a SpinBox widget (the thing you can drag with the mouse to change a numeric value), it does not work well. What I mean with ''not working well'' is that the value only updates once as you drag the mouse, and then no longer updates, as if you had released the mouse.

I suspect this may be related to the user interface responding to the change in value by also updating the rows shown in the top side of the frame for editing a DataTable. I have done some digging through the C++ code and debugging myself, and have noticed that, for some reason, the spinner widget no longer keeps the mouse captured. The OnEndSliderMovement event is only called if you drag the mouse by a VERY tiny amount, such that the mouse is actually still on top of the two little arrows that you first click to start dragging. If you drag the mouse any further, the OnEndSliderMovement event is never called anymore.

Steps to reproduce:

  1. Create a struct that extends FTableRowBase

  2. Add a UPROPERTY with a spinner widget (for instance, a float).

  3. Create a new Data Table (through Miscellaneous --> Data Table) asset using the new struct and open it

  4. Add a new row to the Data Table

  5. Try changing the value of the float property by dragging with the mouse. It should only update once by a small amount, and then stop updating until you release the mouse and click it again to start dragging again (which will again only work for a small update value, etc.)

Here's some code for the first 2 steps:

 struct FTestTableRowStruct : public FTableRowBase
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Test")
     float TestFloat;
Product Version: UE 4.12
more ▼

asked Sep 21 '16 at 03:34 PM in Bug Reports

avatar image

53 2 6 11

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

1 answer: sort voted first

Hey Dennis-

I was able to reproduce the behavior you described in the 4.12.5 engine however when I tested again in 4.13.0 it appears that this is fixed there. You should be able to make a copy of your project in 4.13 and use the slider normally.


Doug Wilson

more ▼

answered Sep 21 '16 at 05:18 PM

avatar image DennisSoemers Sep 21 '16 at 06:18 PM

Alright, thanks. I cannot upgrade the project to 4.13 right away, first need to make sure the other team members also have time to download that version of the engine... but good to know at least that once we do get around to upgrading, this issue should be fixed.

(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