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"

BP: draw an image between two given points: possible?

Hi all, I plan to dynamically scale my image between two given points. So: I have this image and I want UE to set its scale so it stretches but fits between point A and point B. No matter where I set those points, I want this image to follow and stretch or compress. How to do this?

Product Version: UE 4.12
Tags:
more ▼

asked Jul 11 '16 at 11:21 AM in Blueprint Scripting

avatar image

agiro
95 8 12 18

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

1 answer: sort voted first

Hi once again @agiro
i have such an widget ready
dark blue variables(A,B) are vector 2D, and cast to canvas slot will be found , no need to make onealt text

showing each widgets settings

alt text

alt text

alt text

make sure of there settings , only positive values are acceptable for now (in A,B)

cheers!!

zz.jpg (353.2 kB)
zaz.jpg (397.0 kB)
zzzaz.jpg (379.2 kB)
zzzazzzzz.jpg (380.4 kB)
more ▼

answered Jul 11 '16 at 01:53 PM

avatar image

Prithvi Singh
560 16 9 14

avatar image Prithvi Singh Jul 11 '16 at 01:54 PM

unable to replicate? tell me if you need the projects .zip file.

avatar image Prithvi Singh Jul 11 '16 at 02:05 PM

@agiro zip is 2.31 MB

avatar image agiro Jul 11 '16 at 02:34 PM

Once again thanks for the help :D Yes, I would like the zip if you can manage, this is a bit daunting at first glance. By the way, How to mark a comment as answer? And besides the likes, is it possible to add to your reputation? Loads of help you gave me. Edit: I see this is an answer, can mark as solution.

avatar image Prithvi Singh Jul 11 '16 at 02:43 PM

mail me here (there is no way to attach zip here)

prithvi.singh.prithvi.singh.1.2.3@gmail.com

i will send an reply with zip attached
thanks for your support!! :D

avatar image agiro Jul 11 '16 at 02:50 PM

email sent. Thanks in advance.

avatar image agiro Jul 11 '16 at 02:58 PM

File received. I check on it and after understanding it there will be no issues. Thanks once again!

avatar image Prithvi Singh Jul 11 '16 at 03:05 PM

you are welcome once again:)

avatar image agiro Jul 11 '16 at 03:44 PM

Heh just after I started understanding your solution, I found another one and it works: Simple linear ratio (funny, just passed calculus and computational theory great go :D ) So I have a maximum distance, got my spring between it. The tooth moves, the distance gets smaller. I get the distance, divide it by the max distance and apply it to the Y portion of my spring, keeping the X 1. This way it automatically fits the spring perfectly between the tooth and the stack.

avatar image Prithvi Singh Jul 11 '16 at 03:50 PM

nice one , i wonder why i didn't come up with this ? this is helpful to me as well. :)

(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