Announcement

Collapse
No announcement yet.

Change an object using Static Objects instead Movable

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

    Change an object using Static Objects instead Movable

    Hello everyone!

    I have a level in which there is a chair. I want to change the chair for a different model by clicking on it and displaying a widget when the player can select the model.

    For this I made a Blueprint class, and I change it through SetStaticMesh. It works fine, but the problem is that it only works if the Mesh is set to Movable. If I set it to Static it doesn't works. I need it to be Static, because I use only Static lights.

    I use this Nodes in the widget Blueprint to change the model:
    Click image for larger version

Name:	setstaticmesh.jpg
Views:	1
Size:	181.0 KB
ID:	1155065

    Can anybody hep me with this?

    Thank you so much!
    Our Website
    Our DemoReeel

    #2
    Nudo, I'm not a lighting expert, but if you only use static lights and place or switch an object in game, the new object won't have the baked lighting on it.

    Comment


      #3
      Don't think you can do what you want with static lights, you will need to use dynamic lights with movable "dynamic" actors.

      Comment


        #4
        Indeed, static lighting prohibits changing/moving static actors during runtime.
        However, if you set that up in the construction script, to make a configurable asset, it works.
        You still need to rebuild your lighting after each change...

        you will need to use dynamic lights
        The lights themselves do not need to be dynamic (movable). They can remain static.

        Comment

        Working...
        X