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 to change a mesh material using a button in VR (HTC Vive)

So I've been struggling for a day and a bit now to figure out how to change the material on a mesh using a button. It's probably really simple but I am fairly new to Unreal, sorry.

This is the setup I am using (he has the files available to download in the description) https://www.youtube.com/watch?v=KQexLS2xjOs&t=242s

I can't figure out how exactly to set the blueprint up.

I try to replicate the set up that works and I can get this far: alt text

Original one that works: alt text

However when I go to create my custom event this happens alt text

I don't have the option to set the visibility of my car mesh (I have tried using the straight up mesh referenced in a variable as static as well as a blueprint).

If someone could tell me how to correctly set this all up it would be really appreciated, thank you!

Product Version: UE 4.20
more ▼

asked Aug 08 '18 at 07:29 PM in Blueprint Scripting

avatar image

1 1

avatar image Althaen Aug 09 '18 at 02:27 AM

Does the car exist in the world?

avatar image tdesign01 Aug 09 '18 at 12:29 PM

Yes, I tried dragging the mesh into the level and also attaching it to an actor blueprint

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

1 answer: sort voted first

If the car is placed in the level as part of the level instead of being spawned, you can use GetAllActors of Class node and loop through until you find it, or give it a tag and use GetAllActorsWithTag (probably better).

Also there is a show/hide bool on Actors in the world, HiddenInGame which you can turn on and off. See if that shows up.

more ▼

answered Aug 27 '18 at 03:35 PM

avatar image

3.7k 18 23 20

(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