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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Panning a Material Instance in Blueprint?

Hello, I have been working on trying to figure this out for a few days now and have had little to no luck at all. I have watched countless tutorials and read numerous dead end documentations in search for a solution to what I believe should be a simple problem. I have a texture that I created into a material with a -y axis panning effect. I now need to be able to control the speed of the panning effect through my class blueprint. Can anyone point me in the right direction? I have read and viewed these: https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/MaterialInstances/index.html https://www.youtube.com/watch?v=cta_4g0aG6U https://www.youtube.com/watch?v=srUSDU1u0og https://www.youtube.com/watch?v=vjf71f1y7NA

I have followed and tried these but none of them allow me to control the speed or even access my Material...not trying to just change the color...I want to control the speed of my already panning Material or at least create the panning effect inside Blueprint so I can control the speed of it.alt text alt text alt text][3]

link text

Product Version: Not Selected
Tags:
more ▼

asked Sep 24 '14 at 04:23 PM in Blueprint Scripting

avatar image

GameHatcher
44 5 10 14

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

1 answer: sort voted first

Delete the Conveyor Speed nodes(get and set) in construction script, you dont need to set it there. Now get that CB Anime Material variable you created > Get it in Event Graph > drag from it > search for Set Scalar value node. Now enter the name of the variable in that node and change the panning speed via a float variable like that Conveyor Speed one.

more ▼

answered Sep 24 '14 at 04:29 PM

avatar image

Jacky
16.8k 671 167 676

avatar image GameHatcher Sep 24 '14 at 06:00 PM

You mean like this?

alt text

avatar image Jacky Sep 24 '14 at 06:02 PM

Yeah, but in Event Graph if you want to manipulate it in run time.

avatar image GameHatcher Sep 24 '14 at 06:16 PM

I am uploading another video showing you what I just did. Should take a few minutes....

avatar image GameHatcher Sep 24 '14 at 06:19 PM
avatar image Jacky Sep 24 '14 at 06:21 PM

Video is private.

avatar image GameHatcher Sep 24 '14 at 06:25 PM
avatar image GameHatcher Sep 24 '14 at 06:25 PM

Try it now..sorry about that.

avatar image Jacky Sep 24 '14 at 06:30 PM

Ok, you need that create material inst. dynamic node in construction script, and then set it's output as a variable(like your first screenshot). Then use that variable for the set scalar parameter node's Target.

avatar image Jacky Sep 24 '14 at 06:36 PM

Like this:

alt text

matinstdynamic.jpg (69.5 kB)
avatar image GameHatcher Sep 24 '14 at 06:58 PM

I can't use an Event Begin Play because I already have one driving the invisible boxes...unless you know how to connect 2..???alt text

avatar image Jacky Sep 24 '14 at 07:02 PM

I used it just as a representation of your event so it doesnt matter. But you can use a Sequence node to spread the same event to multiple functions.

avatar image GameHatcher Sep 24 '14 at 07:06 PM

Where is your Brakelight Set going into on the Construction Script?

avatar image Jacky Sep 24 '14 at 07:10 PM

It is not going into anywhere in the construction script. You are creating that as a variable and then it gets placed in My Blueprint panel on the left. Take it from there and plug it to Target of set scalar parameter node.

avatar image GameHatcher Sep 24 '14 at 10:16 PM

I am still having no luck getting this to work...maybe it is impossible to do in UE4....although it shouldn't be.

avatar image GameHatcher Sep 24 '14 at 06:29 PM

Those are two different attempts. What am I doing wrong?

avatar image GameHatcher Sep 24 '14 at 06:37 PM

After going back and re-reading your post I changed the initial node to match your exact instructions but when I played the scene...I got the same results as before. I know it has to be possible...I am just not seeing what I am missing.

alt text

alt text

(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