Announcement

Collapse
No announcement yet.

Replacing mesh in runtime

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

    Replacing mesh in runtime

    Hello. I have simple blueprint, which has static mesh component and collision box. How do I change static mesh for static mesh component during run time? I can do that by setting visibility on component, but that also means I will want to add not one but many static mesh components to be able add/change meshes, which will make a lot of difficulties later, when I will want to add more than few mesh options. Any ideas?

    #2
    Hi,
    There is a "SetStaticMesh" node, that should do the trick.
    Click image for larger version

Name:	SetMesh.png
Views:	176
Size:	27.5 KB
ID:	1675102
    WIP ShootOut - 3rdPerson ARPG

    Comment


      #3
      Originally posted by silik1 View Post
      Hi,
      There is a "SetStaticMesh" node, that should do the trick.
      Click image for larger version  Name:	SetMesh.png Views:	1 Size:	27.5 KB ID:	1675102
      I've already tried that, but mesh won't change when I try to do so during gameplay


      UPD: Just tried again and it seems to be working. Looks like I've messed with constructor script a little. Thanks
      Last edited by avdept; 10-18-2019, 08:49 AM.

      Comment

      Working...
      X