# \#casting

**URL:** https://forums.unrealengine.com/tag/casting/593.md

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

---

## [Pulling Data from a Data Table to populate a quiz game...](https://forums.unrealengine.com/t/pulling-data-from-a-data-table-to-populate-a-quiz-game/489998)

<div class="topic-metadata">

**Author:** [@connorh777](https://forums.unrealengine.com/u/connorh777)\
**Replies:** 1\
**Last updated:** [September 18, 2026, 2:39pm UTC](https://forums.unrealengine.com/t/pulling-data-from-a-data-table-to-populate-a-quiz-game/489998 "2026-09-18T14:39:14Z")

</div>

I’ve been working on this as a project to learn the software, been working on this for weeks now and it’s driving me crazy. Referred to so many different tutorials but none seem to quite cover what I’m looking for… So I…

---

## [Widget class of widget component set to PLACEHOLDER-CLASS\_something when restarting editor](https://forums.unrealengine.com/t/widget-class-of-widget-component-set-to-placeholder-class_something-when-restarting-editor/310632)

<div class="topic-metadata">

**Author:** [@Truun](https://forums.unrealengine.com/u/Truun)\
**Replies:** 18\
**Last updated:** [February 11, 2026, 12:38am UTC](https://forums.unrealengine.com/t/widget-class-of-widget-component-set-to-placeholder-class_something-when-restarting-editor/310632 "2026-02-11T00:38:20Z")

</div>

Hello everyone, I’m trying access some text from a widget and set its value like this: The text is set fine. However, when I restart the editor, the first thing I see is that my widget class in the widget component is …

---

## [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…

---

## [Why is using a Soft Reference from an actor in Blueprints still loading everything in memory in the Editor (according to the Size Map). Am I missing something?](https://forums.unrealengine.com/t/why-is-using-a-soft-reference-from-an-actor-in-blueprints-still-loading-everything-in-memory-in-the-editor-according-to-the-size-map-am-i-missing-something/687967)

<div class="topic-metadata">

**Author:** [@Derelicts\_Romain](https://forums.unrealengine.com/u/Derelicts_Romain)\
**Replies:** 23\
**Last updated:** [September 9, 2025, 3:04am UTC](https://forums.unrealengine.com/t/why-is-using-a-soft-reference-from-an-actor-in-blueprints-still-loading-everything-in-memory-in-the-editor-according-to-the-size-map-am-i-missing-something/687967 "2025-09-09T03:04:16Z")

</div>

Hello everyone, I’ve noticed that the Size Maps of my actors are still indicating big amount of memory being used in the Editor even though I’m mostly using Soft References, Async loading/Loading and casting from the lo…

---

## [Blueprint for opening a car door with a mouse click.](https://forums.unrealengine.com/t/blueprint-for-opening-a-car-door-with-a-mouse-click/2475999)

<div class="topic-metadata">

**Author:** [@Przemek73](https://forums.unrealengine.com/u/Przemek73)\
**Replies:** 7\
**Last updated:** [May 4, 2025, 5:13pm UTC](https://forums.unrealengine.com/t/blueprint-for-opening-a-car-door-with-a-mouse-click/2475999 "2025-05-04T17:13:57Z")

</div>

This must have been asked a million times already since more and more people are using UE for car configurators, however I am simply not getting any answers from anyone or finding any relevant tutorials. So here it goes: …

---

## ["CAST" FOR BIND DISPATCHER](https://forums.unrealengine.com/t/cast-for-bind-dispatcher/2482742)

<div class="topic-metadata">

**Author:** [@Cykablatta](https://forums.unrealengine.com/u/Cykablatta)\
**Replies:** 22\
**Last updated:** [May 2, 2025, 5:38am UTC](https://forums.unrealengine.com/t/cast-for-bind-dispatcher/2482742 "2025-05-02T05:38:27Z")

</div>

Hello ev! :slightly\_smiling\_face: I made a bp that takes all the most used bp’s refs in my project, to avoid having too many get actors of class x times in each of them, to keep everything lighter. So, this bp takes all…

---

## [Ai Controller Not Valid after Ai Respawn](https://forums.unrealengine.com/t/ai-controller-not-valid-after-ai-respawn/2456152)

<div class="topic-metadata">

**Author:** [@Maximum.Dino](https://forums.unrealengine.com/u/Maximum.Dino)\
**Replies:** 2\
**Last updated:** [April 17, 2025, 11:17am UTC](https://forums.unrealengine.com/t/ai-controller-not-valid-after-ai-respawn/2456152 "2025-04-17T11:17:19Z")

</div>

I’m working on creating a save system for my game, and when the game loads, the ai characters need to be spawned using the data saved. The issue that I’m having is that when the characters respawn, the controller is inva…

---

## [Trying to pass a variable from an actor to an animation blueprint or a pawn](https://forums.unrealengine.com/t/trying-to-pass-a-variable-from-an-actor-to-an-animation-blueprint-or-a-pawn/2327804)

<div class="topic-metadata">

**Author:** [@schallundrauch](https://forums.unrealengine.com/u/schallundrauch)\
**Replies:** 9\
**Last updated:** [February 12, 2025, 12:06pm UTC](https://forums.unrealengine.com/t/trying-to-pass-a-variable-from-an-actor-to-an-animation-blueprint-or-a-pawn/2327804 "2025-02-12T12:06:53Z")

</div>

I’m new to Unreal and I’m struggeling to pass variables from an actor blueprint to an animation blueprint. When I’m using a pawn instead of an actor everything works but I want to apply animations to a metahuman which is…

---

## [Accessing C++ 'Native class' and it's variables from a UBlueprint object](https://forums.unrealengine.com/t/accessing-c-native-class-and-its-variables-from-a-ublueprint-object/2230406)

<div class="topic-metadata">

**Author:** [@bwbilyeu](https://forums.unrealengine.com/u/bwbilyeu)\
**Replies:** 4\
**Last updated:** [December 18, 2024, 3:38pm UTC](https://forums.unrealengine.com/t/accessing-c-native-class-and-its-variables-from-a-ublueprint-object/2230406 "2024-12-18T15:38:37Z")

</div>

I am trying to check the values of the C++ ‘Native Class’ of a Blueprint object, in C++ code. I am working with a derived EditorValidator\_Base class. I want to validate that my blueprinted MyGameplayAbility objects have …

---

## [Casting Successful, But Error Shows When Using the "As" Pin](https://forums.unrealengine.com/t/casting-successful-but-error-shows-when-using-the-as-pin/2152036)

<div class="topic-metadata">

**Author:** [@Maximum.Dino](https://forums.unrealengine.com/u/Maximum.Dino)\
**Replies:** 9\
**Last updated:** [November 28, 2024, 4:07pm UTC](https://forums.unrealengine.com/t/casting-successful-but-error-shows-when-using-the-as-pin/2152036 "2024-11-28T16:07:46Z")

</div>

I’m working on an inventory system and all has been going well, I’m following a tutorial basically to a tee, but I’m getting an error that seems to be saying that it can’t the ‘As BP\_Item’ is inaccessible, ‘pending kill …

---

## [I've Casted to An AI Character's parent, "Cast to Character." What is the object reference for that?](https://forums.unrealengine.com/t/ive-casted-to-an-ai-characters-parent-cast-to-character-what-is-the-object-reference-for-that/2122344)

<div class="topic-metadata">

**Author:** [@Maximum.Dino](https://forums.unrealengine.com/u/Maximum.Dino)\
**Replies:** 8\
**Last updated:** [November 14, 2024, 1:54pm UTC](https://forums.unrealengine.com/t/ive-casted-to-an-ai-characters-parent-cast-to-character-what-is-the-object-reference-for-that/2122344 "2024-11-14T13:54:22Z")

</div>

I need to cast to an AI Character. It’s parent class/object is “Character.” Now, it says it’s valid for the character to cast to the Ai Character, but I have no idea what to use for the object reference for the “Cast to …

---

## [How to Cast to Behavior Tree Task?](https://forums.unrealengine.com/t/how-to-cast-to-behavior-tree-task/2115976)

<div class="topic-metadata">

**Author:** [@Maximum.Dino](https://forums.unrealengine.com/u/Maximum.Dino)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 4:40am UTC](https://forums.unrealengine.com/t/how-to-cast-to-behavior-tree-task/2115976 "2024-11-13T04:40:50Z")

</div>

I have been trying for a very long time to cast to a task within a behavior tree from a UI widget. I am not sure what to use as my object reference for the task. The parent to the task is the BTTask Blueprint Base, but I…

---

## [cast to issue](https://forums.unrealengine.com/t/cast-to-issue/2098893)

<div class="topic-metadata">

**Author:** [@b1ind5ight.ttv](https://forums.unrealengine.com/u/b1ind5ight.ttv)\
**Replies:** 7\
**Last updated:** [November 1, 2024, 11:29am UTC](https://forums.unrealengine.com/t/cast-to-issue/2098893 "2024-11-01T11:29:21Z")

</div>

Ok so I am struggling here with casting it feels like no matter what it just doesnt work. So i made a whole new project and decided to see if I could do it on a very simple level and I still kept getting a failed …

---

## [Can't figure out why these casts are failing all of the sudden](https://forums.unrealengine.com/t/cant-figure-out-why-these-casts-are-failing-all-of-the-sudden/2079124)

<div class="topic-metadata">

**Author:** [@Mr\_AKIMBO](https://forums.unrealengine.com/u/Mr_AKIMBO)\
**Replies:** 8\
**Last updated:** [October 21, 2024, 9:39pm UTC](https://forums.unrealengine.com/t/cant-figure-out-why-these-casts-are-failing-all-of-the-sudden/2079124 "2024-10-21T21:39:31Z")

</div>

While making a few changes a couple of cast to AI\_controller stopped working out of nowhere: And in this one not only is the cast failing but the try get pawn owner is being read as not valid, even though when I prin…

---

## [Why C++ casting is more efficient (for memory) and blueprint casting - NOT?](https://forums.unrealengine.com/t/why-c-casting-is-more-efficient-for-memory-and-blueprint-casting-not/2059434)

<div class="topic-metadata">

**Author:** [@Wisewalker](https://forums.unrealengine.com/u/Wisewalker)\
**Replies:** 8\
**Last updated:** [October 9, 2024, 11:32pm UTC](https://forums.unrealengine.com/t/why-c-casting-is-more-efficient-for-memory-and-blueprint-casting-not/2059434 "2024-10-09T23:32:19Z")

</div>

Hello! Recently I have been reading a lot about the performance problems related to blueprint casting (i.e. in BPs using nodes ‘cast to’, ‘get all actors of class’, ‘get actor of class’ etc. results in creating hard refe…

---

## [Casting slate widgets](https://forums.unrealengine.com/t/casting-slate-widgets/315587)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cf61193c1](https://forums.unrealengine.com/u/anonymous_user_cf61193c1)\
**Replies:** 7\
**Last updated:** [September 10, 2024, 11:41pm UTC](https://forums.unrealengine.com/t/casting-slate-widgets/315587 "2024-09-10T23:41:53Z")

</div>

Hi! This is probably a simple question: How do i cast from SWidget to STextBlock? I tried for some hours now. So far nothing works. Here are some things i have already tried: STextBlock textBlock = (STextBlock)this-\>…

---

## [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.

---

## [VR Puppeteer to Puppet Input Transfer Problem in Unreal Engine ](https://forums.unrealengine.com/t/vr-puppeteer-to-puppet-input-transfer-problem-in-unreal-engine/2013481)

<div class="topic-metadata">

**Author:** [@meekamaqa](https://forums.unrealengine.com/u/meekamaqa)\
**Replies:** 0\
**Last updated:** [September 9, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/vr-puppeteer-to-puppet-input-transfer-problem-in-unreal-engine/2013481 "2024-09-09T16:43:56Z")

</div>

VR Puppeteer to Puppet Input Transfer Problem in Unreal Engine Overview I’m a beginner in Unreal Engine working on a VR setup where a puppeteer’s inputs are transferred to a puppet in real-time. The goal is to have …

---

## [Can someone tell me why my widget component is failing to cast my widget?](https://forums.unrealengine.com/t/can-someone-tell-me-why-my-widget-component-is-failing-to-cast-my-widget/1910364)

<div class="topic-metadata">

**Author:** [@Leshrac231](https://forums.unrealengine.com/u/Leshrac231)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 7:11am UTC](https://forums.unrealengine.com/t/can-someone-tell-me-why-my-widget-component-is-failing-to-cast-my-widget/1910364 "2024-07-06T07:11:44Z")

</div>

first picture is from my actor component, im successing in getting the function i made in my widget component. this is my widget component function. I dont know why but my code is failing to cast my widget and is n…

---

## [Actor reference from child actor component](https://forums.unrealengine.com/t/actor-reference-from-child-actor-component/326098)

<div class="topic-metadata">

**Author:** [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Replies:** 12\
**Last updated:** [June 1, 2024, 5:51pm UTC](https://forums.unrealengine.com/t/actor-reference-from-child-actor-component/326098 "2024-06-01T17:51:44Z")

</div>

Hey folks, Is it possible to get an actor(object) reference from a child actor component? i.e can I get an instance of a child actor to allow for me to call functions on it? I can’t seem to find a way to get the instan…

---

## [How to do i use interface here](https://forums.unrealengine.com/t/how-to-do-i-use-interface-here/1870824)

<div class="topic-metadata">

**Author:** [@Yumi](https://forums.unrealengine.com/u/Yumi)\
**Replies:** 8\
**Last updated:** [May 24, 2024, 10:57pm UTC](https://forums.unrealengine.com/t/how-to-do-i-use-interface-here/1870824 "2024-05-24T22:57:25Z")

</div>

I’m trying to interface so far no issue but heard ppl saying casting can also avoid but i just cant figured it how 1st Screen shot from Animation blueprint Thanks for help

---

## [\[Solved\]Struggling to Cast from a actor.](https://forums.unrealengine.com/t/solved-struggling-to-cast-from-a-actor/1808560)

<div class="topic-metadata">

**Author:** [@Tacagaita](https://forums.unrealengine.com/u/Tacagaita)\
**Replies:** 7\
**Last updated:** [April 17, 2024, 8:25pm UTC](https://forums.unrealengine.com/t/solved-struggling-to-cast-from-a-actor/1808560 "2024-04-17T20:25:23Z")

</div>

From a character, I am having difficulty accessing the content of a text-type variable that is in an actor. I can’t cast the actor that is the parent of the variable. On this BP\_TestCast i create and set the variable…

---

## [trying to be efficient with bpi interfaces and event dispatcher on my endless runner](https://forums.unrealengine.com/t/trying-to-be-efficient-with-bpi-interfaces-and-event-dispatcher-on-my-endless-runner/1806965)

<div class="topic-metadata">

**Author:** [@franckys](https://forums.unrealengine.com/u/franckys)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 11:51pm UTC](https://forums.unrealengine.com/t/trying-to-be-efficient-with-bpi-interfaces-and-event-dispatcher-on-my-endless-runner/1806965 "2024-04-16T23:51:24Z")

</div>

In this section of the blueprint I was trying to implement BP interfaces or even dispatchers in place of the cast which I know is very memory heavy but for one reason or another it doesn’t work i tryed different approach…

---

## [Actor BeginOverlap only returning one call](https://forums.unrealengine.com/t/actor-beginoverlap-only-returning-one-call/1772353)

<div class="topic-metadata">

**Author:** [@Wolflynxit](https://forums.unrealengine.com/u/Wolflynxit)\
**Replies:** 4\
**Last updated:** [March 26, 2024, 4:49am UTC](https://forums.unrealengine.com/t/actor-beginoverlap-only-returning-one-call/1772353 "2024-03-26T04:49:35Z")

</div>

I am unsure why this doesn’t work. What I am trying to do is have it so when one of the player-volumes (2nd pic) overlaps within the larger volume (WaterVolume), it returns a true or false that set’s a player-variable…

---

## [Widget component cast not working](https://forums.unrealengine.com/t/widget-component-cast-not-working/301258)

<div class="topic-metadata">

**Author:** [@Roel](https://forums.unrealengine.com/u/Roel)\
**Replies:** 17\
**Last updated:** [March 22, 2024, 4:36pm UTC](https://forums.unrealengine.com/t/widget-component-cast-not-working/301258 "2024-03-22T16:36:17Z")

</div>

I’m kind of new to Blueprint with UMG, so maybe my thought process is completely wrong here, but this is what I am doing: Created a widget component named “DebugWidget” Set the widget component class type to “Debug…

---

## [How can I create an Image object from a texture2d? Or vice versa.](https://forums.unrealengine.com/t/how-can-i-create-an-image-object-from-a-texture2d-or-vice-versa/1750424)

<div class="topic-metadata">

**Author:** [@1nsaneEExituuuU](https://forums.unrealengine.com/u/1nsaneEExituuuU)\
**Replies:** 7\
**Last updated:** [March 15, 2024, 8:42pm UTC](https://forums.unrealengine.com/t/how-can-i-create-an-image-object-from-a-texture2d-or-vice-versa/1750424 "2024-03-15T20:42:53Z")

</div>

Hello, I am quite stuck on what I’d expect to be quite a simple issue. When I spawn a buff object from class (in this case “Debuff Burn”) It takes an Image object that it then uses to display the image. However my te…

---

## [Print String changes previous nodes](https://forums.unrealengine.com/t/print-string-changes-previous-nodes/1747068)

<div class="topic-metadata">

**Author:** [@CapCapCaptain](https://forums.unrealengine.com/u/CapCapCaptain)\
**Replies:** 8\
**Last updated:** [March 12, 2024, 10:22am UTC](https://forums.unrealengine.com/t/print-string-changes-previous-nodes/1747068 "2024-03-12T10:22:02Z")

</div>

Hey all, we ran into a super curious behavior in a blueprint, that goes against how I thought blueprints execute code: A Print String node changes the way previous nodes are executed. It’s a bit iffy to debug, since pri…

---

## [Converting Object Reference into another Object Refrence](https://forums.unrealengine.com/t/converting-object-reference-into-another-object-refrence/475049)

<div class="topic-metadata">

**Author:** [@J.Isralite](https://forums.unrealengine.com/u/J.Isralite)\
**Replies:** 1\
**Last updated:** [February 16, 2024, 4:54pm UTC](https://forums.unrealengine.com/t/converting-object-reference-into-another-object-refrence/475049 "2024-02-16T16:54:51Z")

</div>

So I’m a newbie at Unreal Engine and I’m trying to integrate \[this\]\[1\] into my project. Here’s what I’ve done: Copied all the CPP files, then compiled them. Created the necessary Blueprints inheriting from those CPP fi…

---

## [Cast to Class ALWAYS Fails.](https://forums.unrealengine.com/t/cast-to-class-always-fails/1645124)

<div class="topic-metadata">

**Author:** [@SpirusAnunnaki](https://forums.unrealengine.com/u/SpirusAnunnaki)\
**Replies:** 0\
**Last updated:** [January 26, 2024, 11:57pm UTC](https://forums.unrealengine.com/t/cast-to-class-always-fails/1645124 "2024-01-26T23:57:15Z")

</div>

First, I hope I have this in the right area. I am using Unreal Engine 5.3, and I have a weird issue I cannot figure out. Cast to Class always fails. I even created a blank, new Character, with the only thing in it is a…

---

## [Casting to another BP fails no matter what](https://forums.unrealengine.com/t/casting-to-another-bp-fails-no-matter-what/1626232)

<div class="topic-metadata">

**Author:** [@triedandtried](https://forums.unrealengine.com/u/triedandtried)\
**Replies:** 8\
**Last updated:** [January 20, 2024, 6:11am UTC](https://forums.unrealengine.com/t/casting-to-another-bp-fails-no-matter-what/1626232 "2024-01-20T06:11:34Z")

</div>

What I am trying to do: I have a setup inside of BP\_FirstPersonCharacter, where if the player presses the keyboard button Y, Unreal should cast to another BP called SwitchToGardenAreaBP, and return the value of a variab…

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