I’m trying to attach a variable to a character blueprint.
I tried adding a skeletal mesh but didn’t work and then tried creating an actor blueprint from it but i can only populate an ‘Actor Class’ variable and not an Actor Object.
Any ideas??
I’m trying to attach a variable to a character blueprint.
I tried adding a skeletal mesh but didn’t work and then tried creating an actor blueprint from it but i can only populate an ‘Actor Class’ variable and not an Actor Object.
Any ideas??
I believe the node is acting for the actor you wish to attach the mesh to, e.g. a blueprint for your rifle or whatever it is you’re making, it’s not asking for the skeletal mesh.
The node you are using to create/add the skeletal mesh component, is just that, a component, where your trying to set the “Actor” is only concerned with what “actor” will be the owning actor, if you do not pin in anything to that, then the blueprint you are working in, will be the “owning actor”.
To set the actual skeletal mesh pull off from the pin on the right side (return value), then hook it to a “set skeletal mesh”, that node will allow you to use your skeletal mesh variable, or to select from a drop down list, the actual skeletal mesh you wish to use.
Remember, Skeletal Meshes, nor Static Meshes never exist in the game on their own. When you drag and drop a SM or Skm, into the game, the “Editor” is creating an “actor” behind the scenes, as well as other little goodies, to make it happen. When you do this in Blueprints, then you have to do it. Hence, creating the component, and then setting the SM or Skm, then having it being “owned”, essentially, it’s a “owning parent”.
Hope this helps,