I am working on my first project solo in Unreal and decided a shooter would be fun enough. Importing a gun model and was working on animation blueprints but I am unable to cast to my character (BP_FPSCharacter) and shows this error code. The current value of the ’ Object ’ pin is invalid: Unsupported type Wildcard on pin Object
The type of Object is undetermined. Connect something to Cast To BP_FPSCharacter to imply a specific type. And I haven’t been able to find a solution online. If someone could a provide a solution it would be very helpful.
Welcome to the forums!
You can get a reference to the character that owns the mesh that is using that animation blueprint by using Try Get Pawn Owner, which can then be cast into your character class.
However, you will probably want to place this in the Initialize event rather than Update, to only reach out for it once and then you can pull off the pin of the BP_FPSCharacter cast to promote it as a variable to reference elsewhere such as your Update event.
I used the method you previded but it still shows that the animation cant be connected and says the I can’t connect it because it is a unsupported type WildCard on pin object, so I cannot connect the animation the the character.
It sounds like you still have a Cast to your character class somewhere without a connection to the Object input pin, which would need to come from the Try Get Pawn Owner.
If you click on the underlined Object text, it should highlight the node that it has a problem with.
Would you mind taking another screenshot of your graph?