Announcement

Collapse
No announcement yet.

Changing materials help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing materials help

    Hello everyone. First i wanna say that im new in ue4 and blueprint so i don't know much about it.

    I created and imported this guy in the engine and now i want to change the material of his shirt in another blueprint. My problem is, i don't know what to target when setting the material.

    Click image for larger version

Name:	1.png
Views:	1
Size:	534.3 KB
ID:	1158705

    Click image for larger version

Name:	2.png
Views:	1
Size:	250.3 KB
ID:	1158706

    #2
    This should be a simple way to fix it. As far as I know it should work, just follow the steps below.

    -Get player pawn
    -Cast player pawn to FirstPersonCharacter
    -Drag pin off the return of the cast and get char(Your skeletal mesh component)
    -hook char up to the target and it should work!

    hope that helps!

    Comment


      #3
      I'm now having this error:

      Click image for larger version

Name:	3.png
Views:	1
Size:	293.8 KB
ID:	1083102

      Comment


        #4
        Just ignore this "get charcreation" error, that has nothing to do with this-

        Comment


          #5
          Hi Randomguydoa,

          Currently, your cast isn't actually doing anything as it isn't receiving an execution. You will either need to convert the node to a pure cast so it doesn't require the execution, or plug the cast into your execution chain before attempting to alter the material.
          Adam Davis | Marketplace Support | Epic Games
          How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter

          Comment


            #6
            Hello Adam. Everything is working perfectly fine now. Thank you both for your help!

            Comment


              #7
              Since you said you were new I thought I would check: are the materials you are trying to switch between essentially the same thing but with a different texture sample or number value somewhere? You can make a material instance to save on compiling shaders if they are

              Comment

              Working...
              X