# \#cast-failed

**URL:** https://forums.unrealengine.com/tag/cast-failed/4100.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Why would this cast fail when its connected to an input action, but not when its connected to anything else? ](https://forums.unrealengine.com/t/why-would-this-cast-fail-when-its-connected-to-an-input-action-but-not-when-its-connected-to-anything-else/2658302)

<div class="topic-metadata">

**Author:** [@Cloak\_Enjoyer](https://forums.unrealengine.com/u/Cloak_Enjoyer)\
**Replies:** 5\
**Last updated:** [September 19, 2025, 8:05pm UTC](https://forums.unrealengine.com/t/why-would-this-cast-fail-when-its-connected-to-an-input-action-but-not-when-its-connected-to-anything-else/2658302 "2025-09-19T20:05:12Z")

</div>

Hello! Im trying to do a simple cast to another Character Blueprint, but for some reason, when the cast is connected to an Input Action (In this case the R key) It does not work! I added these Print Strings to check when…

---

## [In the Animation Blueprint, the Pawn obtained using the TryToGetPawnOwner node cannot be cast to a subclass of Character.](https://forums.unrealengine.com/t/in-the-animation-blueprint-the-pawn-obtained-using-the-trytogetpawnowner-node-cannot-be-cast-to-a-subclass-of-character/2022169)

<div class="topic-metadata">

**Author:** [@Soldhum\_Soon](https://forums.unrealengine.com/u/Soldhum_Soon)\
**Replies:** 1\
**Last updated:** [September 15, 2024, 7:25pm UTC](https://forums.unrealengine.com/t/in-the-animation-blueprint-the-pawn-obtained-using-the-trytogetpawnowner-node-cannot-be-cast-to-a-subclass-of-character/2022169 "2024-09-15T19:25:25Z")

</div>

UE5.4.1 I have a CharacterStage that inherits from Character. In the Animation Blueprint, the Pawn obtained using TryToGetPawnOwner always fails when using Cast To CharacterStage.

---

## [Cast to PlayerController fails](https://forums.unrealengine.com/t/cast-to-playercontroller-fails/343275)

<div class="topic-metadata">

**Author:** [@Syrill](https://forums.unrealengine.com/u/Syrill)\
**Replies:** 16\
**Last updated:** [October 20, 2023, 12:06pm UTC](https://forums.unrealengine.com/t/cast-to-playercontroller-fails/343275 "2023-10-20T12:06:23Z")

</div>

This is not the first time I cast a Player Controller, but the first time I can not get it to work. I´ve read many questions here related to \[casting and Player Controllers\]\[1\], but none of them provided a solution for m…

---

## [Unable to Cast to Main character from a possessed pawn using an item](https://forums.unrealengine.com/t/unable-to-cast-to-main-character-from-a-possessed-pawn-using-an-item/434231)

<div class="topic-metadata">

**Author:** [@npnFF1517](https://forums.unrealengine.com/u/npnFF1517)\
**Replies:** 8\
**Last updated:** [July 25, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/unable-to-cast-to-main-character-from-a-possessed-pawn-using-an-item/434231 "2022-07-25T15:10:43Z")

</div>

Hello im new here. The problem occurs when i want to use my inventory I spawn a pawn and possess it with the default player controller. When I click my item It runs an event through blueprint interface. There are no prob…

---

## [Cast To Static Mesh Component Always Failing](https://forums.unrealengine.com/t/cast-to-static-mesh-component-always-failing/502430)

<div class="topic-metadata">

**Author:** [@Tay5472](https://forums.unrealengine.com/u/Tay5472)\
**Replies:** 1\
**Last updated:** [February 26, 2022, 8:18pm UTC](https://forums.unrealengine.com/t/cast-to-static-mesh-component-always-failing/502430 "2022-02-26T20:18:41Z")

</div>

I Have A Static Mesh Component Which Is Always Failing And I Can’t Figure Out Why. Its Probably Some Small Error But I’ve Been Stuck For Like 30mins Trying To Figure It Out. Anyone Have Any Idea?

---

## [4.17 Editor crashing during load, Cast of REINST to ActorComponent](https://forums.unrealengine.com/t/4-17-editor-crashing-during-load-cast-of-reinst-to-actorcomponent/397923)

<div class="topic-metadata">

**Author:** [@Raf\_L3O](https://forums.unrealengine.com/u/Raf_L3O)\
**Replies:** 13\
**Last updated:** [October 30, 2021, 4:47pm UTC](https://forums.unrealengine.com/t/4-17-editor-crashing-during-load-cast-of-reinst-to-actorcomponent/397923 "2021-10-30T16:47:16Z")

</div>

Fatal error: \[File:D:\\Build++UE4+Release-4.17+Compile\\Sync\\Engine\\Source\\Runtime\\CoreUObject\\Private\\Templates\\Casts.cpp\] \[Line: 10\] Cast of REINST\_ChooseResearchFocus\_C\_166 /Engine/Transient.REINST\_FactionBase\_C\_259:Def…

---

## [How do I get the variable from another blueprint? What am I doing wrong?](https://forums.unrealengine.com/t/how-do-i-get-the-variable-from-another-blueprint-what-am-i-doing-wrong/489333)

<div class="topic-metadata">

**Author:** [@kingdomheart661](https://forums.unrealengine.com/u/kingdomheart661)\
**Replies:** 13\
**Last updated:** [September 29, 2021, 1:44pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variable-from-another-blueprint-what-am-i-doing-wrong/489333 "2021-09-29T13:44:24Z")

</div>

I’m creating a checkpoint thing, where when you touch an object it adds a point to a variable, and when you collide with the floor if checks the variable and depending on the value it teleports you to a different checkpo…

---

## [Identical Casts: one works; one doesn't](https://forums.unrealengine.com/t/identical-casts-one-works-one-doesnt/488079)

<div class="topic-metadata">

**Author:** [@dogTired](https://forums.unrealengine.com/u/dogTired)\
**Replies:** 8\
**Last updated:** [August 28, 2021, 9:23am UTC](https://forums.unrealengine.com/t/identical-casts-one-works-one-doesnt/488079 "2021-08-28T09:23:35Z")

</div>

I have a class with a function where I Cast(), which works fine. #include "GatherBall.h" #include "Wed3182Character.h" //function void AGatherBall::OnOverlapBegin(class UPrimitiveComponent\* OverlappedComp, class AA…

---

## [(theoretically) valid cast failed](https://forums.unrealengine.com/t/theoretically-valid-cast-failed/483184)

<div class="topic-metadata">

**Author:** [@Xilef\_HD](https://forums.unrealengine.com/u/Xilef_HD)\
**Replies:** 3\
**Last updated:** [May 13, 2021, 5:31pm UTC](https://forums.unrealengine.com/t/theoretically-valid-cast-failed/483184 "2021-05-13T17:31:08Z")

</div>

So basically I am trying to load a widget from an UGC package. But when I try to cast the widgetclass to its superclass, the cast just returns NULL. relevant cpp code excerpt: for (FUGCPackage& package : UGCRegistry-\>U…

---

## [Cast failed - Health](https://forums.unrealengine.com/t/cast-failed-health/476155)

<div class="topic-metadata">

**Author:** [@Medievil\_Peky91](https://forums.unrealengine.com/u/Medievil_Peky91)\
**Replies:** 12\
**Last updated:** [April 24, 2021, 7:07pm UTC](https://forums.unrealengine.com/t/cast-failed-health/476155 "2021-04-24T19:07:02Z")

</div>

Hi, so you try to display the health of the player and the player character inherits from “TestEnemy” / is a “TestEnemy”, right?

---

## [SaveGame cast failed since the addition of new level, gamemode and player controller](https://forums.unrealengine.com/t/savegame-cast-failed-since-the-addition-of-new-level-gamemode-and-player-controller/479568)

<div class="topic-metadata">

**Author:** [@EDOTONY](https://forums.unrealengine.com/u/EDOTONY)\
**Replies:** 9\
**Last updated:** [February 28, 2021, 10:53pm UTC](https://forums.unrealengine.com/t/savegame-cast-failed-since-the-addition-of-new-level-gamemode-and-player-controller/479568 "2021-02-28T22:53:09Z")

</div>

Cast to the game mode? Do you mean to your own save game? I’ve had problems using short slot names. Try making the name longer.

---

## [CAST failed when using child of the CASTED parent character class](https://forums.unrealengine.com/t/cast-failed-when-using-child-of-the-casted-parent-character-class/467087)

<div class="topic-metadata">

**Author:** [@BEnSon1101](https://forums.unrealengine.com/u/BEnSon1101)\
**Replies:** 5\
**Last updated:** [June 23, 2020, 7:17am UTC](https://forums.unrealengine.com/t/cast-failed-when-using-child-of-the-casted-parent-character-class/467087 "2020-06-23T07:17:50Z")

</div>

I have a parent Character class I have a child Character class I have a respawn function in a PlayerState class which CASTS to the Parent Character Class because i am using the Child Character Class and not the Parent…

---

## [Cast Failing all over the place](https://forums.unrealengine.com/t/cast-failing-all-over-the-place/463193)

<div class="topic-metadata">

**Author:** [@MAIKERU\_Jackson](https://forums.unrealengine.com/u/MAIKERU_Jackson)\
**Replies:** 12\
**Last updated:** [April 2, 2020, 1:17pm UTC](https://forums.unrealengine.com/t/cast-failing-all-over-the-place/463193 "2020-04-02T13:17:51Z")

</div>

Does anyone know why this cast could or does fail? I have used this method a tonne of times with no issues. I am having a similar issue with my get player controller cast to my player controller. I have another projec…

---

## [Is there a way to make ai sense other ai?](https://forums.unrealengine.com/t/is-there-a-way-to-make-ai-sense-other-ai/350880)

<div class="topic-metadata">

**Author:** [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Replies:** 1\
**Last updated:** [November 1, 2019, 6:58am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-make-ai-sense-other-ai/350880 "2019-11-01T06:58:02Z")

</div>

so im working on an rts game, i have one ai character that stands still until it sees one of the characters the player is controlling. The player controller is in a blueprint that controls the camera, while all of the c…

---

## [Casting to Enemy in Service of Behaviour Tree](https://forums.unrealengine.com/t/casting-to-enemy-in-service-of-behaviour-tree/456131)

<div class="topic-metadata">

**Author:** [@FishOmelette](https://forums.unrealengine.com/u/FishOmelette)\
**Replies:** 1\
**Last updated:** [September 28, 2019, 1:24pm UTC](https://forums.unrealengine.com/t/casting-to-enemy-in-service-of-behaviour-tree/456131 "2019-09-28T13:24:10Z")

</div>

Hi, I’m having trouble with casting to an Enemy in the Service of its Behaviour Tree. I have other similar Services within the same Behaviour Tree but for some reason, this cast keeps failing although no error shows up. …

---

## [Problems Casting to PC as client](https://forums.unrealengine.com/t/problems-casting-to-pc-as-client/455450)

<div class="topic-metadata">

**Author:** [@RKIV](https://forums.unrealengine.com/u/RKIV)\
**Replies:** 8\
**Last updated:** [September 18, 2019, 4:40am UTC](https://forums.unrealengine.com/t/problems-casting-to-pc-as-client/455450 "2019-09-18T04:40:26Z")

</div>

Basically, as soon as I join a listen server as client the cast to my player controller starts to fail. I’m not sure why this would be. Here’s the script that involves the cast. The exec string originally comes from an …

---

## [Cast to game instance failing (from animation blueprint)](https://forums.unrealengine.com/t/cast-to-game-instance-failing-from-animation-blueprint/453734)

<div class="topic-metadata">

**Author:** [@GRooVy\_GRoVer](https://forums.unrealengine.com/u/GRooVy_GRoVer)\
**Replies:** 0\
**Last updated:** [August 12, 2019, 1:42am UTC](https://forums.unrealengine.com/t/cast-to-game-instance-failing-from-animation-blueprint/453734 "2019-08-12T01:42:34Z")

</div>

hello everyone, I have run into a problem. I try to cast to my game instance from a animation blueprint, but it keeps falling: its weird because a already cast a lot to my game instance, and works fine everytime, b…

---

## [Accessed None trying to read property Cast as Animation Blueprint](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-cast-as-animation-blueprint/450998)

<div class="topic-metadata">

**Author:** [@Pantaro](https://forums.unrealengine.com/u/Pantaro)\
**Replies:** 7\
**Last updated:** [June 21, 2019, 9:32am UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-cast-as-animation-blueprint/450998 "2019-06-21T09:32:03Z")

</div>

I finally had the basics of UE4 animation worked out, I even had some animation code working properly. Then my computer bluescreened, and when I got things working again, the code that was working fine is giving me this …

---

## [Cast to SaveGame failed](https://forums.unrealengine.com/t/cast-to-savegame-failed/450743)

<div class="topic-metadata">

**Author:** [@ProDataDavid](https://forums.unrealengine.com/u/ProDataDavid)\
**Replies:** 4\
**Last updated:** [June 16, 2019, 1:35pm UTC](https://forums.unrealengine.com/t/cast-to-savegame-failed/450743 "2019-06-16T13:35:03Z")

</div>

Hello, I try to get data from a SaveGame named LevelSave. The problem, always I get a cast failed but only when I compiled for the shipping mode with an active “For Distribution” checkbox. When I compile the development…

---

## [Save cast fail?](https://forums.unrealengine.com/t/save-cast-fail/440965)

<div class="topic-metadata">

**Author:** [@Snowynight](https://forums.unrealengine.com/u/Snowynight)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 6:56pm UTC](https://forums.unrealengine.com/t/save-cast-fail/440965 "2019-01-09T18:56:23Z")

</div>

What am I missing? Can’t find out why it keeps failing to load.

---

## [Problem with casting](https://forums.unrealengine.com/t/problem-with-casting/437651)

<div class="topic-metadata">

**Author:** [@Voyager\_871](https://forums.unrealengine.com/u/Voyager_871)\
**Replies:** 5\
**Last updated:** [November 15, 2018, 6:50pm UTC](https://forums.unrealengine.com/t/problem-with-casting/437651 "2018-11-15T18:50:11Z")

</div>

I do not understand why this is not working as it should. I am trying to create a jump pick up so whenever the player (which is a vehicle pawn/Sedan blueprint) runs over said pick up they obtain the ability to jump perma…

---

## [Why is the Cast always fails?](https://forums.unrealengine.com/t/why-is-the-cast-always-fails/436495)

<div class="topic-metadata">

**Author:** [@Lemix028](https://forums.unrealengine.com/u/Lemix028)\
**Replies:** 5\
**Last updated:** [October 27, 2018, 5:59pm UTC](https://forums.unrealengine.com/t/why-is-the-cast-always-fails/436495 "2018-10-27T17:59:09Z")

</div>

Because you’re trying to cast the player pawn to a camera pawn, which will never work, because the player pawn is not a camera pawn. If you would like to get the camera from a player, trying getting the player camera man…

---

## [Casting to spawned actor causes editor to crash](https://forums.unrealengine.com/t/casting-to-spawned-actor-causes-editor-to-crash/420815)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_44db827a](https://forums.unrealengine.com/u/anonymous_user_44db827a)\
**Replies:** 3\
**Last updated:** [March 25, 2018, 2:09pm UTC](https://forums.unrealengine.com/t/casting-to-spawned-actor-causes-editor-to-crash/420815 "2018-03-25T14:09:25Z")

</div>

I am trying to create a new instance of a class in my scene. I instantiate an actor based on a blueprint, then try to cast it to the corresponding class. When I compile the solution, my editor crashes. Anyone know why th…

---

## [Event not working with "Cast failed"](https://forums.unrealengine.com/t/event-not-working-with-cast-failed/385257)

<div class="topic-metadata">

**Author:** [@Mister\_P](https://forums.unrealengine.com/u/Mister_P)\
**Replies:** 3\
**Last updated:** [February 5, 2018, 3:32pm UTC](https://forums.unrealengine.com/t/event-not-working-with-cast-failed/385257 "2018-02-05T15:32:20Z")

</div>

you are trying to run the ‘pas en focus’ event through a reference to ‘BP menu’ that doesnt exist, because the cast failed.

---

## [C++ interface implemented in blueprint fails cast](https://forums.unrealengine.com/t/c-interface-implemented-in-blueprint-fails-cast/340138)

<div class="topic-metadata">

**Author:** [@HeavyBullets](https://forums.unrealengine.com/u/HeavyBullets)\
**Replies:** 6\
**Last updated:** [January 17, 2018, 8:52pm UTC](https://forums.unrealengine.com/t/c-interface-implemented-in-blueprint-fails-cast/340138 "2018-01-17T20:52:16Z")

</div>

Hi there guys, here’s the problem. I have an interface created like this. UINTERFACE() class MYPROJECT\_API UInteractableInterface : public UInterface { GENERATED\_UINTERFACE\_BODY() }; class MYPROJECT\_API IInteract…

---

## [Casting not working](https://forums.unrealengine.com/t/casting-not-working/406797)

<div class="topic-metadata">

**Author:** [@guidocm](https://forums.unrealengine.com/u/guidocm)\
**Replies:** 4\
**Last updated:** [November 24, 2017, 10:59pm UTC](https://forums.unrealengine.com/t/casting-not-working/406797 "2017-11-24T22:59:24Z")

</div>

I’m trying to play a sound attached to an actor Cube, that is in the scene, from another blueprint when the player jumps. While “Get All Actors of Class” did the job I’d like to make it more efficient since I already kno…

---

## [Casting failed between two widget blueprints](https://forums.unrealengine.com/t/casting-failed-between-two-widget-blueprints/410283)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a311757d](https://forums.unrealengine.com/u/anonymous_user_a311757d)\
**Replies:** 2\
**Last updated:** [November 22, 2017, 5:31pm UTC](https://forums.unrealengine.com/t/casting-failed-between-two-widget-blueprints/410283 "2017-11-22T17:31:40Z")

</div>

So, I have two widget blueprints(GameWin & MainMenu) What I am trying to do is to make a leaderboard for the player’s scores. In the MainMenu Widget, I have 3 variables(Top Score1, Top Score2, and Top Score3) I need to …

---

## [Actor Casting Problem](https://forums.unrealengine.com/t/actor-casting-problem/317198)

<div class="topic-metadata">

**Author:** [@jtsmith](https://forums.unrealengine.com/u/jtsmith)\
**Replies:** 13\
**Last updated:** [November 6, 2017, 2:42pm UTC](https://forums.unrealengine.com/t/actor-casting-problem/317198 "2017-11-06T14:42:15Z")

</div>

This should be a simple thing but I’m failing miserably. I’ve broken this down into it’s most basic form just to get a reaction from the cast event but it keeps failing no matter what I try. I duplicated a basic shape …

---

## [How do I add an item to my inventory with a UMG button click?](https://forums.unrealengine.com/t/how-do-i-add-an-item-to-my-inventory-with-a-umg-button-click/404035)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f3b19dce1](https://forums.unrealengine.com/u/anonymous_user_f3b19dce1)\
**Replies:** 2\
**Last updated:** [September 7, 2017, 9:03pm UTC](https://forums.unrealengine.com/t/how-do-i-add-an-item-to-my-inventory-with-a-umg-button-click/404035 "2017-09-07T21:03:17Z")

</div>

I’m making a click based project and I’m trying to add an item to an array with a UMG button click. I have watched many tutorials but the only ones I can find involve ray trace or overlap events. Because I don’t have a p…

---

## ["Cast to" object](https://forums.unrealengine.com/t/cast-to-object/403114)

<div class="topic-metadata">

**Author:** [@ldragosl](https://forums.unrealengine.com/u/ldragosl)\
**Replies:** 3\
**Last updated:** [September 3, 2017, 12:46am UTC](https://forums.unrealengine.com/t/cast-to-object/403114 "2017-09-03T00:46:51Z")

</div>

What object should i use for this cast? https://postimg.org/image/7mrtpq9id/

[Next page](https://forums.unrealengine.com/tag/cast-failed/4100.md?match_all_tags=true&page=1&tags%5B%5D=cast-failed)
