Spawn actor from class, with same component as the target ?
Hello there ! I got another little problem for my game, it's very simple but I don't know how to solve it after many issues ! It's pretty simple :
I create a Blueprint Props_BP, which has a float variable "Matiere", and a Static Mesh component. So when I drag and drop it into the scene i can easly put some differents values for differents blueprint.Until there, no problem. One of my mechanics I want it's when I press "&", the target touch by the raycast spawn the SAME actor with same variables and same static mesh. I made work the float by an "expose on spawn" and a cast ( check the image below), so it's work, but the static mesh component don't have a "Expose On Spawn" so I create the class with same variable, but with no Static Mesh :/
Please help !! thank you ! ( sorry for my english, not a native)
asked Feb 27 '18 at 10:16 AM in Blueprint Scripting
If you add a second component "mesh" to your character, leave the "inherited" character mesh blank. On begin play set that mesh component then make it a variable and expose that variable on spawn. So you should be able to change the mesh that way you just need to make it a variable.
answered Feb 27 '18 at 12:55 PM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here