# Unable to add ActorClasses in DataTable Editor 4.7 preview

**URL:** <https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442>\
**Category:** Community & Industry Discussion\
**Tags:** actor, classes, datatable, unreal-engine, question\
**Created:** [January 9, 2015, 10:14am UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442 "2015-01-09T10:14:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nobody](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nobody/32/1059620_2.png) [@Nobody](https://forums.unrealengine.com/u/Nobody)\
**Post date:** [January 9, 2015, 10:14am UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/1 "2015-01-09T10:14:34Z")

</div>

Currently you can only add Class Actor inside of an struct, but inside of DataTable Editor you are unable to fill it with any content, it simply doesn’t show up.

Only workaround at moment would be to manually add each Actor Class in each Row at every launch of game during runtime.

---

<div class="post-metadata">

**Author:** ![Nobody](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nobody/32/1059620_2.png) [@Nobody](https://forums.unrealengine.com/u/Nobody)\
**Post date:** [January 13, 2015, 4:57pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/2 "2015-01-13T16:57:08Z")

</div>

bumping this

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 21, 2015, 7:20pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/3 "2015-01-21T19:20:21Z")

</div>

Hi Nobody,

Sorry for delay in response. Can you and attach .csv file you’re using to create your data table? Thanks!

---

<div class="post-metadata">

**Author:** ![Nobody](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nobody/32/1059620_2.png) [@Nobody](https://forums.unrealengine.com/u/Nobody)\
**Post date:** [January 21, 2015, 7:32pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/4 "2015-01-21T19:32:41Z")

</div>

Hi ,  
I didn’t use any .csv File, I tried creating it only with new Features in 4.7. I created a Structure where I created these new Variables like “Actor” class but when I then create a DataTable from that struct, I am not able to edit any Values inside of new RowEditor.

Struct:

![27475-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/a/eba7b282a9193a2e4e4c018bcad97a64e4919bed.jpeg)

DataTable:

 ![27476-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/3/5d300518dee0a4a4d7ec01fe3bc88c347dc959b6.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 21, 2015, 8:54pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/5 "2015-01-21T20:54:04Z")

</div>

Thanks for clarification, Nobody.

Since Actor variable is looking for an instance of Class, you can’t set a default value for it, neither in a Struct nor a Data Table made from that Struct. There is no way, however, to edit Data Table at runtime at this moment, so I have entered a bug report for developers to consider (UE-8001). I’ll let you know what they say when I see an update. Thanks for report!

---

<div class="post-metadata">

**Author:** ![Nobody](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nobody/32/1059620_2.png) [@Nobody](https://forums.unrealengine.com/u/Nobody)\
**Post date:** [January 21, 2015, 10:29pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/6 "2015-01-21T22:29:16Z")

</div>

Thanks for reply!  
I would understand it with (in my example) BP, since it has to be a reference/instance, but shouldn’t BP2 (Actor Class) work, since its no actual instance and just points to a default Blueprint? So I would be able to spawn it via runtime from DataTable?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 21, 2015, 10:45pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/7 "2015-01-21T22:45:22Z")

</div>

I’m not sure, but I’ve included notes to that effect in bug report. I’m not certain how quickly they’ll get to this one, so you may need to find an alternative to Data Tables for this at moment. I will let you know when I get any kind of response.

---

<div class="post-metadata">

**Author:** ![DerCrow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DerCrow](https://forums.unrealengine.com/u/DerCrow)\
**Post date:** [February 27, 2015, 12:41am UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/8 "2015-02-27T00:41:17Z")

</div>

I was planning on using Data Tables to control my blueprint setup.  
Game would pick a member of data table and then pass those values onto blueprint to construct character with.

What would you suggest as an alternative while some of these classes cannot be defined in data Table?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [February 28, 2015, 9:03pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/9 "2015-02-28T21:03:01Z")

</div>

At moment, you’ll need to build another system for that kind of functionality. Easiest thing to do would probably to use arrays, and just pre-fill arrays with data you would put in a data table. Since arrays can be adjusted during gameplay, this should be a suitable workaround.

As a side note, there is an additional bug report for certain variable types that do not allow defaults in structs as well, such as Class as discussed above. I’ll update this post when I see an update on that as well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c2a996b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c2a996b](https://forums.unrealengine.com/u/anonymous_user_6c2a996b)\
**Post date:** [April 30, 2015, 4:50pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/10 "2015-04-30T16:50:16Z")

</div>

I don’t usually “bump” threads, but I’d really like to see ability to edit class references in DataTable Editor as well. I’m seeing quite a few long-open issues on AnswerHub around new DataTable Editor that could be closed as Solved if we had this capability.

I mean, if we could even just have a text field for Actor class fields where we could enter class name (of if we had a function that would do equivalent of “Get Class By Name”) that would be a HUGE win.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [April 30, 2015, 6:02pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/11 "2015-04-30T18:02:45Z")

</div>

This should be fixed by a general Struct overhaul that allows Structs to set defaults for multiple types that are currently missing. It’s a very new change and probably won’t make it into 4.8 (it hasn’t even been verified, yet), so you may not see it until 4.9.

Once I get confirmation that it’s fixed and verified, I will try to find GitHub commit(s) for it and post it here so you can implement it before 4.9 release. Thanks for your patience!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c2a996b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c2a996b](https://forums.unrealengine.com/u/anonymous_user_6c2a996b)\
**Post date:** [April 30, 2015, 6:05pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/12 "2015-04-30T18:05:31Z")

</div>

Fantastic! Can’t wait to try it out 🙂

---

<div class="post-metadata">

**Author:** ![Nsomnia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nsomnia](https://forums.unrealengine.com/u/Nsomnia)\
**Post date:** [June 3, 2015, 11:26am UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/13 "2015-06-03T11:26:51Z")

</div>

Is there a C++ implementation to this that anyones aware of? Would make my life a lot easier with my current setup.

I was reading this  
"  
Thing is, BPs are actually a bundle of data. You are not including an extension, you are accessing object inside of blueprint. BP consists (to my knowledge) of actual Blueprint logic (MyBP.MyBP) and generated C++ class for BP (MyBP.MyBP\_C). If you want to automatically load up a class from a BP, you’d do it like this:

“UClass’/Game/Blueprints/Spells/BP\_Fireball.BP\_Fireball\_C’”  
In my struct I have

UPROPERTY(BlueprintReadOnly, Category = “Magic”)  
TSubclassOf SpellClass;  
This works like a charm for me. All my spells derive from a shared base class so I just cast Actor class I get to my own class and work with that.  
"

Since all my items derive from a base actor class I should be able to create my crafting system similarily, by just creating struct in C++ to find specific classes for say craftable\_rock and craftable\_pully that all inherit from master\_item and allow my BP designers to then use BP getRow functions to spawn those classes or remove them from an array or otherwise?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 3, 2015, 4:14pm UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/14 "2015-06-03T16:14:05Z")

</div>

Hi ,

You should post that question in C++ section of AnswerHub. We’re just tracking this bug here, at this point. Feel free to grab link to this post when you do. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b467b02b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b467b02b](https://forums.unrealengine.com/u/anonymous_user_b467b02b)\
**Post date:** [October 9, 2015, 9:40am UTC](https://forums.unrealengine.com/t/unable-to-add-actorclasses-in-datatable-editor-4-7-preview/303442/15 "2015-10-09T09:40:28Z")

</div>

As a workaround i define in my DataTable struct c++:

```
UClass* WeaponBluePrintSpawnClass; 

```

That allows me to define a Spawning class used for spawning after Casting it to an actor. It’s not that specific as AActor but it works for now, btw i’m using 4.9.2 atm.
