# \#aactor

**URL:** https://forums.unrealengine.com/tag/aactor/2431.md

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

---

## [How do I get an Actor's static mesh?](https://forums.unrealengine.com/t/how-do-i-get-an-actors-static-mesh/298048)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c6c5dc0d](https://forums.unrealengine.com/u/anonymous_user_c6c5dc0d)\
**Replies:** 7\
**Last updated:** [October 17, 2024, 6:38pm UTC](https://forums.unrealengine.com/t/how-do-i-get-an-actors-static-mesh/298048 "2024-10-17T18:38:19Z")

</div>

I have an AActor \* type. How do I get it’s static mesh? When I look at the Actor in the editor, I can see in the root component it has a Static Mesh set. I can see it in the content browser. However, in C++, I can’t se…

---

## [Get class of actor?](https://forums.unrealengine.com/t/get-class-of-actor/339229)

<div class="topic-metadata">

**Author:** [@Dirt113](https://forums.unrealengine.com/u/Dirt113)\
**Replies:** 6\
**Last updated:** [February 16, 2024, 10:56am UTC](https://forums.unrealengine.com/t/get-class-of-actor/339229 "2024-02-16T10:56:37Z")

</div>

Is there a way to get the class of an AActor except for manually casting it to every single subclass, nor enumerations with the type of the actor as a variable? I need this for my inventory system

---

## [What is ForceNoResetLoaders C++](https://forums.unrealengine.com/t/what-is-forcenoresetloaders-c/483381)

<div class="topic-metadata">

**Author:** [@w2lf](https://forums.unrealengine.com/u/w2lf)\
**Replies:** 0\
**Last updated:** [May 14, 2021, 1:53pm UTC](https://forums.unrealengine.com/t/what-is-forcenoresetloaders-c/483381 "2021-05-14T13:53:49Z")

</div>

There is no information about ForceNoResetLoaders on google or documentation. How do I pass it? What is it? I am trying to change an actor outer what will this affect? doc

---

## [Upcasting AActor to Interface](https://forums.unrealengine.com/t/upcasting-aactor-to-interface/476487)

<div class="topic-metadata">

**Author:** [@Fry\_hunter](https://forums.unrealengine.com/u/Fry_hunter)\
**Replies:** 3\
**Last updated:** [December 30, 2020, 9:53pm UTC](https://forums.unrealengine.com/t/upcasting-aactor-to-interface/476487 "2020-12-30T21:53:19Z")

</div>

Hi guys, I have an interface (Unreal interface) called IInteraction. From this, is derived another Interface (cpp interface) called IPickable. And then I have a BasePickup which is child from an AActor and IPickable. So…

---

## [Accessing a static mesh component of an AActor](https://forums.unrealengine.com/t/accessing-a-static-mesh-component-of-an-aactor/468968)

<div class="topic-metadata">

**Author:** [@Gurulis99](https://forums.unrealengine.com/u/Gurulis99)\
**Replies:** 2\
**Last updated:** [August 3, 2020, 6:46am UTC](https://forums.unrealengine.com/t/accessing-a-static-mesh-component-of-an-aactor/468968 "2020-08-03T06:46:12Z")

</div>

Hello, i have a function called OnOverlapBegin, which is executed when my collision box is triggered. I want to access the static mesh component of the overlapped actor , how can I do that? Thanks in advance.

---

## [Casting AActor to pawn](https://forums.unrealengine.com/t/casting-aactor-to-pawn/468810)

<div class="topic-metadata">

**Author:** [@master041398](https://forums.unrealengine.com/u/master041398)\
**Replies:** 4\
**Last updated:** [July 28, 2020, 8:07pm UTC](https://forums.unrealengine.com/t/casting-aactor-to-pawn/468810 "2020-07-28T20:07:45Z")

</div>

I am getting an AActor array of my AITanks. I then try looping through the array getting my AITanks setting them to a TempAITank and then casting from that tank to get the controller. The issue is that the “GetContro…

---

## [GetOwner is returning null](https://forums.unrealengine.com/t/getowner-is-returning-null/468498)

<div class="topic-metadata">

**Author:** [@antonio\_gamedev](https://forums.unrealengine.com/u/antonio_gamedev)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 8:41pm UTC](https://forums.unrealengine.com/t/getowner-is-returning-null/468498 "2020-07-22T20:41:10Z")

</div>

Hello, when I call the method GetOwner in the BeginPlay method I get a null pointer. This is only the code of the BeginPlay method. I have no idea why it is null. Can you give some hint? void ASTrackerBot::BeginPlay() …

---

## [How do I make a 2D array of AActors in c++?](https://forums.unrealengine.com/t/how-do-i-make-a-2d-array-of-aactors-in-c/456427)

<div class="topic-metadata">

**Author:** [@JustMikeMB](https://forums.unrealengine.com/u/JustMikeMB)\
**Replies:** 1\
**Last updated:** [October 4, 2019, 8:01pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-2d-array-of-aactors-in-c/456427 "2019-10-04T20:01:39Z")

</div>

I originally had a TArray of TArrays of a class, making a 2D array of classes, this worked out until I wanted to add collision to each of the nodes in the 2D array. To resolve it I tried to change the empty c++ class int…

---

## [OnComponentBeginOverlap doesn't work in base class](https://forums.unrealengine.com/t/oncomponentbeginoverlap-doesnt-work-in-base-class/434105)

<div class="topic-metadata">

**Author:** [@Josai](https://forums.unrealengine.com/u/Josai)\
**Replies:** 1\
**Last updated:** [September 20, 2018, 11:57am UTC](https://forums.unrealengine.com/t/oncomponentbeginoverlap-doesnt-work-in-base-class/434105 "2018-09-20T11:57:24Z")

</div>

Hey Guys, I have a problem with the OnComponentBeginOverlap() function. I think I will show u in code what doesn’t work: // THIS CODE DOESN'T WORK //baseClass.h UCLASS(abstract) class (Pro…

---

## [C++ Cast NPC Character into Player Character](https://forums.unrealengine.com/t/c-cast-npc-character-into-player-character/428235)

<div class="topic-metadata">

**Author:** [@MasBASS](https://forums.unrealengine.com/u/MasBASS)\
**Replies:** 4\
**Last updated:** [June 29, 2018, 1:53am UTC](https://forums.unrealengine.com/t/c-cast-npc-character-into-player-character/428235 "2018-06-29T01:53:36Z")

</div>

Hello World, C++ noob here. I have a project made in blueprint, and I’m trying to convert everything in C++. I’m having only 1 problem. I have an NPC Character (NPCInteractive), an AI, and I want to cast it into my Play…

---

## [I want to move "AActor" with "AAIController::MoveToLocation"](https://forums.unrealengine.com/t/i-want-to-move-aactor-with-aaicontroller-movetolocation/428061)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a97bad47](https://forums.unrealengine.com/u/anonymous_user_a97bad47)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 7:59am UTC](https://forums.unrealengine.com/t/i-want-to-move-aactor-with-aaicontroller-movetolocation/428061 "2018-06-26T07:59:36Z")

</div>

How do I implement this. I could get an AActor instance for moving it.

---

## [Get Game Instance outside of aactor](https://forums.unrealengine.com/t/get-game-instance-outside-of-aactor/331635)

<div class="topic-metadata">

**Author:** [@shiftone](https://forums.unrealengine.com/u/shiftone)\
**Replies:** 4\
**Last updated:** [February 1, 2018, 10:12pm UTC](https://forums.unrealengine.com/t/get-game-instance-outside-of-aactor/331635 "2018-02-01T22:12:15Z")

</div>

I’m trying to retrieve data from the game instance, however I don’t have an instance of AActor. UClientGameInstance\* gameInstance = Cast\<UClientGameInstance\>(GetGameInstance()); i get the following error; 'AActor::Get…

---

## [SetViewTarget doesn't accept actor input](https://forums.unrealengine.com/t/setviewtarget-doesnt-accept-actor-input/410732)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5123de18](https://forums.unrealengine.com/u/anonymous_user_5123de18)\
**Replies:** 2\
**Last updated:** [November 30, 2017, 9:30pm UTC](https://forums.unrealengine.com/t/setviewtarget-doesnt-accept-actor-input/410732 "2017-11-30T21:30:59Z")

</div>

Hi all, how do I convert an ACharacter to an AActor? SetViewTarget only accepts AActor but I have a ACharacters. I thought they should be able to work? ; void UUHRIGameInstance::SwitchCam() { TArray\<ACharacter\*\>…

---

## [Voxels using AActor cause fps drop. How else to do this in c++?](https://forums.unrealengine.com/t/voxels-using-aactor-cause-fps-drop-how-else-to-do-this-in-c/352701)

<div class="topic-metadata">

**Author:** [@alotofcrashing](https://forums.unrealengine.com/u/alotofcrashing)\
**Replies:** 1\
**Last updated:** [February 24, 2017, 2:42am UTC](https://forums.unrealengine.com/t/voxels-using-aactor-cause-fps-drop-how-else-to-do-this-in-c/352701 "2017-02-24T02:42:53Z")

</div>

I tried to plot a 40x40x5 grid of individual cubes using AActors and spawning with GetWorld()-\>SpawnActor(), but the performance is junk with this many AActors. I read that I should be using InstancedStaticActors for th…

---

## [Where is OnRep\_ReplicatedMovement calling?](https://forums.unrealengine.com/t/where-is-onrep-replicatedmovement-calling/384763)

<div class="topic-metadata">

**Author:** [@anadre](https://forums.unrealengine.com/u/anadre)\
**Replies:** 0\
**Last updated:** [February 13, 2017, 1:31am UTC](https://forums.unrealengine.com/t/where-is-onrep-replicatedmovement-calling/384763 "2017-02-13T01:31:52Z")

</div>

AActor::OnRep\_ReplicatedMovement I scanned all the source but did not see where this function is calling(only for movementComponent but i want see when it call when replicating Actors). Really, is it hide section or smt…

---

## [Is there a function that instead of "Is in Attack Range Of Player"node?](https://forums.unrealengine.com/t/is-there-a-function-that-instead-of-is-in-attack-range-of-player-node/358865)

<div class="topic-metadata">

**Author:** [@iwingn](https://forums.unrealengine.com/u/iwingn)\
**Replies:** 2\
**Last updated:** [August 28, 2016, 6:13pm UTC](https://forums.unrealengine.com/t/is-there-a-function-that-instead-of-is-in-attack-range-of-player-node/358865 "2016-08-28T18:13:12Z")

</div>

I’m learning UE4(and C++) through the book “Learning.C++.by.Creating.Games.with.UE4.2015”. The book is about UE4.6(or someother version,I’m not sure). My version is 4.10. So there are some compatible promblem. And on…

---

## [Crash spawn actor template](https://forums.unrealengine.com/t/crash-spawn-actor-template/358556)

<div class="topic-metadata">

**Author:** [@Alfredo\_Tequila](https://forums.unrealengine.com/u/Alfredo_Tequila)\
**Replies:** 0\
**Last updated:** [May 25, 2016, 4:31pm UTC](https://forums.unrealengine.com/t/crash-spawn-actor-template/358556 "2016-05-25T16:31:07Z")

</div>

Hi, I’m trying to spawn an actor taking as template another one. So after I executes the code below, there would be two objects with the same components and properties. FActorSpawnParameters spawnParameters; spawnP…

---

## [Networked ability always calls on last client?](https://forums.unrealengine.com/t/networked-ability-always-calls-on-last-client/356693)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f037a463](https://forums.unrealengine.com/u/anonymous_user_f037a463)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 10:23pm UTC](https://forums.unrealengine.com/t/networked-ability-always-calls-on-last-client/356693 "2016-05-06T22:23:49Z")

</div>

Hello, So for this question I will tell you about the behavior I want, the behavior I’m getting, and then post what I believe is the relevant code/ errors/ etc. Desired Behavior: Each character calls their ability. Abi…

---

## [Network simulation causes game abort](https://forums.unrealengine.com/t/network-simulation-causes-game-abort/348395)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f037a463](https://forums.unrealengine.com/u/anonymous_user_f037a463)\
**Replies:** 0\
**Last updated:** [February 23, 2016, 12:37pm UTC](https://forums.unrealengine.com/t/network-simulation-causes-game-abort/348395 "2016-02-23T12:37:26Z")

</div>

Hello all. I’m trying to simulate a two player game and spawn a weapon for each Character. The weapons are actors. The game runs fine with one player, but whenever I try to create more than one player I get the following…

---

## [\[C++\]: Adding actors to character: Root Comment:](https://forums.unrealengine.com/t/c-adding-actors-to-character-root-comment/348224)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f037a463](https://forums.unrealengine.com/u/anonymous_user_f037a463)\
**Replies:** 2\
**Last updated:** [February 23, 2016, 12:30pm UTC](https://forums.unrealengine.com/t/c-adding-actors-to-character-root-comment/348224 "2016-02-23T12:30:22Z")

</div>

The character in our game has abilities and weapons that are Actors. We spawn them and such, but I know we are doing something wrong because when play with 2 players simulated. The game crashes, and the abilities only wo…

---

## [Unable to trigger OnActorBeginOverlap event](https://forums.unrealengine.com/t/unable-to-trigger-onactorbeginoverlap-event/338131)

<div class="topic-metadata">

**Author:** [@ideoservo](https://forums.unrealengine.com/u/ideoservo)\
**Replies:** 4\
**Last updated:** [November 11, 2015, 3:17pm UTC](https://forums.unrealengine.com/t/unable-to-trigger-onactorbeginoverlap-event/338131 "2015-11-11T15:17:34Z")

</div>

Hello, could somebody help me with OnActorBeginOverlap in C++ ? It seems the event is not triggered when I use a BoxTrigger Actor (I’ve also tried with a trigger volume without success). I would like to use an external…

---

## [Using an Actor within a Character](https://forums.unrealengine.com/t/using-an-actor-within-a-character/335680)

<div class="topic-metadata">

**Author:** [@Darkhanis](https://forums.unrealengine.com/u/Darkhanis)\
**Replies:** 1\
**Last updated:** [October 18, 2015, 10:54am UTC](https://forums.unrealengine.com/t/using-an-actor-within-a-character/335680 "2015-10-18T10:54:36Z")

</div>

Hi Everyone! I know this must be a really stupid question but i couldn’t find the solution. If this is a duplicate question, please link me the answer. The problem is: I made an actor called PickupItem UCLASS() class…

---

## [Collision and Trace not working with an AActor extended Class](https://forums.unrealengine.com/t/collision-and-trace-not-working-with-an-aactor-extended-class/334132)

<div class="topic-metadata">

**Author:** [@joelComberiati](https://forums.unrealengine.com/u/joelComberiati)\
**Replies:** 2\
**Last updated:** [October 4, 2015, 7:52pm UTC](https://forums.unrealengine.com/t/collision-and-trace-not-working-with-an-aactor-extended-class/334132 "2015-10-04T19:52:19Z")

</div>

Hello, So I am very new to UE, so I am not really sure how a lot of this stuff works, or why it is not. I have set up a “UsableObject” class to extend an AActor class. I have set it up, so that I can add a mesh to it a…

---

## [Packing Android APK is too slow](https://forums.unrealengine.com/t/packing-android-apk-is-too-slow/322987)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6157d2ee](https://forums.unrealengine.com/u/anonymous_user_6157d2ee)\
**Replies:** 4\
**Last updated:** [August 31, 2015, 10:22pm UTC](https://forums.unrealengine.com/t/packing-android-apk-is-too-slow/322987 "2015-08-31T22:22:19Z")

</div>

Packing Android APK is too slow. Hi. I am a newbie in UE4 (I came from unity3d) and I am using UE in a Mac. Why packaging apk is too slow ? In comparison to Unity is takes ages (ok I am exaggerating it takes hours) ! C…

---

## [How to use a AActor class in plugin?](https://forums.unrealengine.com/t/how-to-use-a-aactor-class-in-plugin/328242)

<div class="topic-metadata">

**Author:** [@littlerookie\_1](https://forums.unrealengine.com/u/littlerookie_1)\
**Replies:** 1\
**Last updated:** [August 10, 2015, 10:23pm UTC](https://forums.unrealengine.com/t/how-to-use-a-aactor-class-in-plugin/328242 "2015-08-10T22:23:00Z")

</div>

Hi, I am currently working on a project that deals with creating a plugin. I would like to know how to create a c++ class extending the AActor class in the plugin. The goal is to be able to dynamically create AActor obje…

---

## [AActor double clicks](https://forums.unrealengine.com/t/aactor-double-clicks/324661)

<div class="topic-metadata">

**Author:** [@antifreak2011](https://forums.unrealengine.com/u/antifreak2011)\
**Replies:** 0\
**Last updated:** [July 9, 2015, 6:14pm UTC](https://forums.unrealengine.com/t/aactor-double-clicks/324661 "2015-07-09T18:14:26Z")

</div>

Is there a common way to receive double clicks on an AActor? I only find the “ReceiveActorOnClicked” method, thus I have to implement this by my own?

---

## [\[Feature Request\] Move Replication Functionality to a Base Class of AActor](https://forums.unrealengine.com/t/feature-request-move-replication-functionality-to-a-base-class-of-aactor/321576)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_33e74471](https://forums.unrealengine.com/u/anonymous_user_33e74471)\
**Replies:** 6\
**Last updated:** [June 13, 2015, 3:06am UTC](https://forums.unrealengine.com/t/feature-request-move-replication-functionality-to-a-base-class-of-aactor/321576 "2015-06-13T03:06:25Z")

</div>

Heya, Would it be possible to move the functionality for Replication out of AActor into a base class? AActor is generally overkill for a lot of classes (specifically ones that might inherit from AInfo).

---

## [\[4.8p3+, C++\] NotifyActorBeginOverlap doesn't work](https://forums.unrealengine.com/t/4-8p3-c-notifyactorbeginoverlap-doesnt-work/319817)

<div class="topic-metadata">

**Author:** [@Krakean\_1](https://forums.unrealengine.com/u/Krakean_1)\
**Replies:** 3\
**Last updated:** [May 26, 2015, 9:14pm UTC](https://forums.unrealengine.com/t/4-8p3-c-notifyactorbeginoverlap-doesnt-work/319817 "2015-05-26T21:14:51Z")

</div>

Hi. I have C++ class (ATeleporter) sub-classed from AActor. It has NotifyActorBeginOverlap: void AATeleporter\_Specials::NotifyActorBeginOverlap(AActor\* OtherActor) { GEngine-\>AddOnScreenDebugMessage(2, 2.f, FColor::…

---

## [Impossible to use non AActor class in Blueprint](https://forums.unrealengine.com/t/impossible-to-use-non-aactor-class-in-blueprint/319393)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8eb393831](https://forums.unrealengine.com/u/anonymous_user_8eb393831)\
**Replies:** 0\
**Last updated:** [May 21, 2015, 9:11pm UTC](https://forums.unrealengine.com/t/impossible-to-use-non-aactor-class-in-blueprint/319393 "2015-05-21T21:11:09Z")

</div>

Hi, I found a similar topic but nobody answered the question. So I found this tutorial and it works pretty well. BUT, this tutorial doesn’t work if my class inherits from UEdGraphNode. If I change it for AActor, it wor…

---

## [Feature request: Easy child AAactor destruction](https://forums.unrealengine.com/t/feature-request-easy-child-aaactor-destruction/315282)

<div class="topic-metadata">

**Author:** [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Replies:** 0\
**Last updated:** [April 16, 2015, 3:38pm UTC](https://forums.unrealengine.com/t/feature-request-easy-child-aaactor-destruction/315282 "2015-04-16T15:38:57Z")

</div>

Can we have a flag on an AActor when we want it’s parent to auto destroy it when the parent is destroyed? When looking into this I found documentation on using a delegate, which seems more complicated than it needed to …

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