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. 

how to change the material of the object using c++ without blueprint in vr

i'm make an concept vr walkthrough,toggle light on/off and change the material of the object one or more button on present on the screen.this button like photoscrolling(right and left arrow widget(next button)) makes to change the material of an object.please help... initially which object should changed that will glow on the screen. please help me.. quick reply.... i need..

Product Version: UE 4.20
Tags:
more ▼

asked Aug 13 '18 at 06:22 AM in C++ Programming

avatar image

BalajiJones
6 1

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

1 answer: sort voted first

Use a material instance dynamic. You can create one at runtime by calling ->CreateMaterialInstanceDynamic on your mesh component. The resulting material instance will be automatically set in your mesh. Then you can set the value for the parameter nodes that you put in your material graph.

more ▼

answered Aug 13 '18 at 09:46 AM

avatar image

Sveitar
1k 8 24 26

avatar image BalajiJones Aug 13 '18 at 07:07 PM

not as dynamic material. i had an option to change the material like use to image button.. how to did it

avatar image Sveitar Aug 13 '18 at 11:25 PM

I'm having a difficult time trying to understand you. So you want an editable material property on your class, right?

 UPROPERTY(EditAnywhere)
 UMaterialInterface* Material;
avatar image BalajiJones Aug 14 '18 at 06:00 AM

i think you see what can i told www.youtube.com/watch?v=RI3CwYJw_oQ

avatar image BalajiJones Aug 14 '18 at 06:00 AM

how to use widget in c++

(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