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"

get float with max value?

Hello,

i get a dynamic float and i want to store that float in a variable but it shouldn't get higher than 2. (in blueprint scripting)

p.s. Sorry for my bad english

Product Version: Not Selected
Tags:
more ▼

asked Jan 28 '19 at 07:06 PM in Blueprint Scripting

avatar image

ejakulatje
1 1 2

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

1 answer: sort voted first

When you select float variable in property editor "slider range" and "value range".

Slider range - minimum and maximum values that you can set with slider (that will apper when you set a range) in property editor

Value range - minimum and maximum values that you can set with text field in property editor

Things is those are only for property editor, there no way block ability to set float manually to any value using Set node, you need to program such a limitation with clamp node for example.

alt text

But again this ofcorse won't prevent anyone to manually set variable to any other value, but you can gate keep it by making variable private and make a function that will set the value passing thru clam node so if somebody sets value higher then 2 it will clamp it back to maximum value.

more ▼

answered Jan 28 '19 at 07:23 PM

avatar image

Shadowriver
37.8k 937 172 1123

(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